Fix build

This commit is contained in:
nicolas.dorier 2019-10-06 15:54:19 +09:00
parent 536f98b566
commit f9714f0be0
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -79,7 +79,11 @@ namespace BTCPayServer.Hosting
// StyleSrc = "'self' 'unsafe-inline'",
// ScriptSrc = "'self' 'unsafe-inline'"
//});
}).AddNewtonsoftJson().AddControllersAsServices();
})
#if !NETCOREAPP21
.AddNewtonsoftJson()
#endif
.AddControllersAsServices();
services.TryAddScoped<ContentSecurityPolicies>();
services.Configure<IdentityOptions>(options =>
{