diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 8de2b6b9f..4952b74a0 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -7,6 +7,7 @@ + diff --git a/BTCPayServer/Controllers/ServerController.Storage.cs b/BTCPayServer/Controllers/ServerController.Storage.cs index 28556089a..129be3d39 100644 --- a/BTCPayServer/Controllers/ServerController.Storage.cs +++ b/BTCPayServer/Controllers/ServerController.Storage.cs @@ -10,8 +10,10 @@ 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 NETCOREAPP21 using BTCPayServer.Storage.Services.Providers.GoogleCloudStorage; using BTCPayServer.Storage.Services.Providers.GoogleCloudStorage.Configuration; +#endif using BTCPayServer.Storage.Services.Providers.Models; using BTCPayServer.Storage.ViewModels; using BTCPayServer.Views; @@ -229,11 +231,11 @@ namespace BTCPayServer.Controllers case AmazonS3FileProviderService fileProviderService: return View(nameof(EditAmazonS3StorageProvider), fileProviderService.GetProviderConfiguration(data)); - +#if NETCOREAPP21 case GoogleCloudStorageFileProviderService fileProviderService: return View(nameof(EditGoogleCloudStorageStorageProvider), fileProviderService.GetProviderConfiguration(data)); - +#endif case FileSystemFileProviderService fileProviderService: if (data.Provider != BTCPayServer.Storage.Models.StorageProvider.FileSystem) { @@ -260,14 +262,14 @@ namespace BTCPayServer.Controllers { return await SaveStorageProvider(viewModel, BTCPayServer.Storage.Models.StorageProvider.AmazonS3); } - +#if NETCOREAPP21 [HttpPost("server/storage/GoogleCloudStorage")] public async Task EditGoogleCloudStorageStorageProvider( GoogleCloudStorageConfiguration viewModel) { return await SaveStorageProvider(viewModel, BTCPayServer.Storage.Models.StorageProvider.GoogleCloudStorage); } - +#endif [HttpPost("server/storage/FileSystem")] public async Task EditFileSystemStorageProvider(FileSystemStorageConfiguration viewModel) {