From f9714f0be0f544cfc4f96e4e4cb96982f7850f2c Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 6 Oct 2019 15:54:19 +0900 Subject: [PATCH] Fix build --- BTCPayServer/Hosting/Startup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index 2ede5c971..ee8d071dc 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -79,7 +79,11 @@ namespace BTCPayServer.Hosting // StyleSrc = "'self' 'unsafe-inline'", // ScriptSrc = "'self' 'unsafe-inline'" //}); - }).AddNewtonsoftJson().AddControllersAsServices(); + }) +#if !NETCOREAPP21 + .AddNewtonsoftJson() +#endif + .AddControllersAsServices(); services.TryAddScoped(); services.Configure(options => {