diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 10b6c4fdc..8284dcf12 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -1,8 +1,9 @@  - + false + $(DefineConstants);RAZOR_RUNTIME_COMPILE Exe @@ -66,7 +67,7 @@ - + diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index 9dc0221b8..55d347db1 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -82,7 +82,7 @@ namespace BTCPayServer.Hosting }; }) .AddNewtonsoftJson() -#if DEBUG +#if RAZOR_RUNTIME_COMPILE .AddRazorRuntimeCompilation() #endif .AddControllersAsServices();