Remove Razor view runtime compilation
This commit is contained in:
parent
eb06bf1562
commit
03d64364a8
@ -10,10 +10,6 @@
|
|||||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0-rc.*" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Groceries.Data\Groceries.Data.csproj" />
|
<ProjectReference Include="..\Groceries.Data\Groceries.Data.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -47,11 +47,6 @@ var mvc = builder.Services
|
|||||||
})
|
})
|
||||||
.AddSessionStateTempDataProvider();
|
.AddSessionStateTempDataProvider();
|
||||||
|
|
||||||
if (env.IsDevelopment())
|
|
||||||
{
|
|
||||||
mvc.AddRazorRuntimeCompilation();
|
|
||||||
}
|
|
||||||
|
|
||||||
builder.Services.AddDistributedMemoryCache();
|
builder.Services.AddDistributedMemoryCache();
|
||||||
builder.Services.AddSession();
|
builder.Services.AddSession();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user