From ae1fdb09924e77d6041b645044751ce9de372425 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Mon, 5 Feb 2024 13:03:42 -0500 Subject: [PATCH] [PM-5052] Upgrade to .NET 8 (#3461) * Upgrade to .NET 8 * Linting * Clean up old JSON deserialization code * More .NET 8-oriented linting * Light feedback * Get rid of old test we don't know the root issue for * Fix a new test * Remove now-unnecessary Renovate constraint * Use Any() * Somehow a 6.0 tooling config we don't need snuck back in * Space out properties that always change per release * Bump a few core packages since the last update --- .config/dotnet-tools.json | 2 +- Directory.Build.props | 30 ++++++++++--------- bitwarden_license/src/Scim/Dockerfile | 6 ++-- bitwarden_license/src/Sso/Dockerfile | 6 ++-- .../src/Sso/Utilities/Saml2BitHandler.cs | 2 +- .../Factories/ScimApplicationFactory.cs | 4 +-- global.json | 2 +- perf/MicroBenchmarks/MicroBenchmarks.csproj | 1 - src/Admin/Dockerfile | 6 ++-- .../AzureQueueMailHostedService.cs | 4 +-- .../OrganizationConnectionRequestModel.cs | 2 +- src/Api/Dockerfile | 6 ++-- src/Billing/Dockerfile | 6 ++-- .../CreateOrganizationDomainCommand.cs | 2 +- .../Cloud/ValidateSponsorshipCommand.cs | 2 +- src/Core/Utilities/JsonHelpers.cs | 12 -------- .../Utilities/SecurityHeadersMiddleware.cs | 6 ++-- src/Core/Utilities/SpanExtensions.cs | 17 ----------- src/Events/Dockerfile | 6 ++-- .../AzureQueueHostedService.cs | 4 +-- src/EventsProcessor/Dockerfile | 6 ++-- src/Icons/Dockerfile | 6 ++-- src/Identity/Dockerfile | 6 ++-- src/Notifications/Dockerfile | 6 ++-- .../Services/OrganizationServiceTests.cs | 2 +- test/Core.Test/Services/DeviceServiceTests.cs | 5 ++-- .../Utilities/SpanExtensionsTests.cs | 18 ----------- .../Vault/Services/CipherServiceTests.cs | 7 ++--- test/Icons.Test/Models/IconLinkTests.cs | 6 ++-- .../Services/IconFetchingServiceTests.cs | 3 +- .../Endpoints/IdentityServerTests.cs | 2 +- .../OrganizationRepositoryTests.cs | 2 +- .../Factories/IdentityApplicationFactory.cs | 2 +- .../WebApplicationFactoryExtensions.cs | 4 +-- util/MsSqlMigratorUtility/Dockerfile | 2 +- util/Server/Dockerfile | 2 +- util/Setup/Dockerfile | 8 ++--- util/SqliteMigrations/SqliteMigrations.csproj | 1 - 38 files changed, 82 insertions(+), 132 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index a3850de029..e29d6594ea 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -7,7 +7,7 @@ "commands": ["swagger"] }, "dotnet-ef": { - "version": "7.0.15", + "version": "8.0.0", "commands": ["dotnet-ef"] } } diff --git a/Directory.Build.props b/Directory.Build.props index 376ab13177..8cfc297865 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,8 +1,10 @@ - net6.0 + net8.0 + 2024.2.0 + Bit.$(MSBuildProjectName) enable false @@ -17,31 +19,31 @@ - 17.1.0 + 17.8.0 - 2.4.1 + 2.6.6 - 2.4.3 + 2.5.6 - 3.1.2 + 6.0.0 - 4.3.0 + 5.1.0 - 4.17.0 + 4.18.1 - 4.17.0 + 4.18.1