diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 53c16078e..c77d0477c 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -6,7 +6,7 @@ - + diff --git a/BTCPayServer/Controllers/ServerController.Storage.cs b/BTCPayServer/Controllers/ServerController.Storage.cs index fcfc96e6b..947ae07c1 100644 --- a/BTCPayServer/Controllers/ServerController.Storage.cs +++ b/BTCPayServer/Controllers/ServerController.Storage.cs @@ -10,7 +10,7 @@ using BTCPayServer.Storage.Services.Providers.AzureBlobStorage; using BTCPayServer.Storage.Services.Providers.AzureBlobStorage.Configuration; using BTCPayServer.Storage.Services.Providers.FileSystemStorage; using BTCPayServer.Storage.Services.Providers.FileSystemStorage.Configuration; -#if SupportGoogleStorage +#if SUPPORT_GOOGLE_STORAGE using BTCPayServer.Storage.Services.Providers.GoogleCloudStorage; using BTCPayServer.Storage.Services.Providers.GoogleCloudStorage.Configuration; #endif @@ -221,7 +221,7 @@ namespace BTCPayServer.Controllers case AmazonS3FileProviderService fileProviderService: return View(nameof(EditAmazonS3StorageProvider), fileProviderService.GetProviderConfiguration(data)); -#if SupportGoogleStorage +#if SUPPORT_GOOGLE_STORAGE case GoogleCloudStorageFileProviderService fileProviderService: return View(nameof(EditGoogleCloudStorageStorageProvider), fileProviderService.GetProviderConfiguration(data)); @@ -252,7 +252,7 @@ namespace BTCPayServer.Controllers { return await SaveStorageProvider(viewModel, BTCPayServer.Storage.Models.StorageProvider.AmazonS3); } -#if SupportGoogleStorage +#if SUPPORT_GOOGLE_STORAGE [HttpPost("server/storage/GoogleCloudStorage")] public async Task EditGoogleCloudStorageStorageProvider( GoogleCloudStorageConfiguration viewModel) diff --git a/Build/Common.csproj b/Build/Common.csproj index cc7839551..1d67bdeda 100644 --- a/Build/Common.csproj +++ b/Build/Common.csproj @@ -4,7 +4,7 @@ $(TargetFrameworkOverride) NU1701,CA1816,CA1308,CA1810,CA2208 8.0 - false + true $(DefineConstants);SUPPORT_GOOGLE_STORAGE