From 03d64364a8374504c7bdc9bb8f3142d62b224aff Mon Sep 17 00:00:00 2001 From: James Chapman Date: Sat, 4 Nov 2023 16:22:28 +0000 Subject: [PATCH] Remove Razor view runtime compilation --- Groceries/Groceries.csproj | 4 ---- Groceries/Program.cs | 5 ----- 2 files changed, 9 deletions(-) diff --git a/Groceries/Groceries.csproj b/Groceries/Groceries.csproj index c9f3867..7a3eb58 100644 --- a/Groceries/Groceries.csproj +++ b/Groceries/Groceries.csproj @@ -10,10 +10,6 @@ en - - - - diff --git a/Groceries/Program.cs b/Groceries/Program.cs index ee1486f..3eb058f 100644 --- a/Groceries/Program.cs +++ b/Groceries/Program.cs @@ -47,11 +47,6 @@ var mvc = builder.Services }) .AddSessionStateTempDataProvider(); -if (env.IsDevelopment()) -{ - mvc.AddRazorRuntimeCompilation(); -} - builder.Services.AddDistributedMemoryCache(); builder.Services.AddSession();