From cc80e4636fc8fd0dc220170b5150a325dc53a7f4 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Thu, 9 Apr 2020 23:19:45 +0900 Subject: [PATCH] Remove runtime compile on tests (#1453) --- BTCPayServer/BTCPayServer.csproj | 5 +++-- BTCPayServer/Hosting/Startup.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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();