adds razor runtime page recompilation to startup

This commit is contained in:
2020-02-08 00:44:26 +01:00
parent ce4043254c
commit d7939fbaac
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ namespace Tv7Playlist
ConfigureParser(services, appConfig);
ConfigureDatabase(services, appConfig);
services.AddRazorPages();
services.AddMvc().AddRazorRuntimeCompilation();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

View File

@@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.1" />
</ItemGroup>