From d24f9d399609d28d449ac3194ab23a0d6242301d Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 6 Aug 2023 15:55:12 +0100 Subject: [PATCH] fix: add rider hot reload support --- OliverBooth/OliverBooth.csproj | 1 + OliverBooth/Program.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OliverBooth/OliverBooth.csproj b/OliverBooth/OliverBooth.csproj index 760a26f..13558d6 100644 --- a/OliverBooth/OliverBooth.csproj +++ b/OliverBooth/OliverBooth.csproj @@ -14,6 +14,7 @@ + diff --git a/OliverBooth/Program.cs b/OliverBooth/Program.cs index 2a9bff7..f244e99 100644 --- a/OliverBooth/Program.cs +++ b/OliverBooth/Program.cs @@ -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);