fix: add rider hot reload support

This commit is contained in:
Oliver Booth 2023-08-06 15:55:12 +01:00
parent 8ad324227a
commit d24f9d3996
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.9"/>
<PackageReference Include="X10D" Version="3.2.2"/>
<PackageReference Include="X10D.Hosting" Version="3.2.2"/>
</ItemGroup>

View File

@ -1,6 +1,6 @@
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddRazorPages().AddRazorRuntimeCompilation();
builder.Services.AddControllersWithViews();
builder.Services.AddRouting(options => options.LowercaseUrls = true);