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>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||||
|
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
||||||
|
<PreserveCompilationContext>false</PreserveCompilationContext>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Dapper.Transaction" Version="2.0.35.2" />
|
<PackageReference Include="Dapper.Transaction" Version="2.0.35.2" />
|
||||||
<PackageReference Include="DSharpPlus" Version="4.1.0" />
|
<PackageReference Include="DSharpPlus" Version="4.1.0" />
|
||||||
<PackageReference Include="DSharpPlus.CommandsNext" 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="MySql.Data" Version="8.0.28" />
|
||||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.0.0-rc2" />
|
<PackageReference Include="NLog.Web.AspNetCore" Version="5.0.0-rc2" />
|
||||||
<PackageReference Include="Telegram.Bot.Extensions.Polling" Version="1.0.2" />
|
<PackageReference Include="Telegram.Bot.Extensions.Polling" Version="1.0.2" />
|
||||||
|
|||||||
@ -62,13 +62,9 @@ try
|
|||||||
services.AddSingleton<RequestTimeTrackerMiddleware>();
|
services.AddSingleton<RequestTimeTrackerMiddleware>();
|
||||||
services.AddSingleton<AnonymousUserMassagerMiddleware>();
|
services.AddSingleton<AnonymousUserMassagerMiddleware>();
|
||||||
services.AddHostedService<HeartMonitor>();
|
services.AddHostedService<HeartMonitor>();
|
||||||
|
|
||||||
services.AddControllersWithViews()
|
var mvcBuilder = services.AddControllersWithViews();
|
||||||
#if DEBUG
|
|
||||||
.AddRazorRuntimeCompilation()
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
|
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
|
||||||
.AddCookie(options =>
|
.AddCookie(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user