mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-20 23:56:08 +03:00
remove razor runtime compilation
This commit is contained in:
parent
02016abd38
commit
12ca7f08f7
@ -3,13 +3,14 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
||||
<PreserveCompilationContext>false</PreserveCompilationContext>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapper.Transaction" Version="2.0.35.2" />
|
||||
<PackageReference Include="DSharpPlus" Version="4.1.0" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.1.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.1" />
|
||||
<PackageReference Include="MySql.Data" Version="8.0.28" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.0.0-rc2" />
|
||||
<PackageReference Include="Telegram.Bot.Extensions.Polling" Version="1.0.2" />
|
||||
|
||||
@ -63,11 +63,7 @@ try
|
||||
services.AddSingleton<AnonymousUserMassagerMiddleware>();
|
||||
services.AddHostedService<HeartMonitor>();
|
||||
|
||||
services.AddControllersWithViews()
|
||||
#if DEBUG
|
||||
.AddRazorRuntimeCompilation()
|
||||
#endif
|
||||
;
|
||||
var mvcBuilder = services.AddControllersWithViews();
|
||||
|
||||
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
|
||||
.AddCookie(options =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user