diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4095a2dde..b94d3235f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,11 @@ jobs: with: fetch-depth: 0 - name: Setup .NET SDK - uses: actions/setup-dotnet@v1.8.2 + uses: actions/setup-dotnet@v1.9.0 with: - dotnet-version: 5.0.x - - name: Setup .NET Core 3.1 runtime - uses: actions/setup-dotnet@v1.8.2 - with: - dotnet-version: 3.1.x + dotnet-version: | + 6.0.x + 3.1.x - name: Build run: dotnet build src --configuration Release - name: Upload packages diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed272c06e..2fa866bcd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,9 @@ jobs: echo "PARTICULAR_REPO_NAME=$RepoName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append shell: pwsh - name: Setup .NET SDK - uses: actions/setup-dotnet@v1.7.2 + uses: actions/setup-dotnet@v1.9.0 with: - dotnet-version: 5.0.x + dotnet-version: 6.0.x - name: Build run: dotnet build src --configuration Release - name: Install NuGetKeyVaultSignTool diff --git a/src/NServiceBus.SqlServer.AcceptanceTests/NServiceBus.SqlServer.AcceptanceTests.csproj b/src/NServiceBus.SqlServer.AcceptanceTests/NServiceBus.SqlServer.AcceptanceTests.csproj index a235caf8e..017d8f2af 100644 --- a/src/NServiceBus.SqlServer.AcceptanceTests/NServiceBus.SqlServer.AcceptanceTests.csproj +++ b/src/NServiceBus.SqlServer.AcceptanceTests/NServiceBus.SqlServer.AcceptanceTests.csproj @@ -1,11 +1,12 @@  - net461;netcoreapp3.1 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.Transport.SqlServer.AcceptanceTests\AcceptanceTests.snk true $(DefineConstants);SYSTEMDATASQLCLIENT + $(NoWarn);SYSLIB0021 diff --git a/src/NServiceBus.SqlServer.IntegrationTests/NServiceBus.SqlServer.IntegrationTests.csproj b/src/NServiceBus.SqlServer.IntegrationTests/NServiceBus.SqlServer.IntegrationTests.csproj index b55a8ad17..35814e3fa 100644 --- a/src/NServiceBus.SqlServer.IntegrationTests/NServiceBus.SqlServer.IntegrationTests.csproj +++ b/src/NServiceBus.SqlServer.IntegrationTests/NServiceBus.SqlServer.IntegrationTests.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true diff --git a/src/NServiceBus.SqlServer.TransportTests/NServiceBus.SqlServer.TransportTests.csproj b/src/NServiceBus.SqlServer.TransportTests/NServiceBus.SqlServer.TransportTests.csproj index 903fb4667..7130b398c 100644 --- a/src/NServiceBus.SqlServer.TransportTests/NServiceBus.SqlServer.TransportTests.csproj +++ b/src/NServiceBus.SqlServer.TransportTests/NServiceBus.SqlServer.TransportTests.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true diff --git a/src/NServiceBus.SqlServer.UnitTests/NServiceBus.SqlServer.UnitTests.csproj b/src/NServiceBus.SqlServer.UnitTests/NServiceBus.SqlServer.UnitTests.csproj index 2a3e6d9bc..8ee01281e 100644 --- a/src/NServiceBus.SqlServer.UnitTests/NServiceBus.SqlServer.UnitTests.csproj +++ b/src/NServiceBus.SqlServer.UnitTests/NServiceBus.SqlServer.UnitTests.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true diff --git a/src/NServiceBus.Transport.SqlServer.AcceptanceTests/ConfigureEndpointSqlServerTransport.cs b/src/NServiceBus.Transport.SqlServer.AcceptanceTests/ConfigureEndpointSqlServerTransport.cs index 9af0ca0f5..9b8b8c7d2 100644 --- a/src/NServiceBus.Transport.SqlServer.AcceptanceTests/ConfigureEndpointSqlServerTransport.cs +++ b/src/NServiceBus.Transport.SqlServer.AcceptanceTests/ConfigureEndpointSqlServerTransport.cs @@ -19,7 +19,9 @@ public Task Configure(string endpointName, EndpointConfiguration configuration, { queueBindings = configuration.GetSettings().Get(); settings = configuration.GetSettings(); +#pragma warning disable IDE0004 // Remove Unnecessary Cast settings.Set("SqlServer.SubscriptionTableQuotedQualifiedNameSetter", (Action)SetSubscriptionTableName); +#pragma warning restore IDE0004 // Remove Unnecessary Cast doNotCleanNativeSubscriptions = runSettings.TryGet("DoNotCleanNativeSubscriptions", out _); connectionString = Environment.GetEnvironmentVariable("SqlServerTransportConnectionString"); diff --git a/src/NServiceBus.Transport.SqlServer.AcceptanceTests/NServiceBus.Transport.SqlServer.AcceptanceTests.csproj b/src/NServiceBus.Transport.SqlServer.AcceptanceTests/NServiceBus.Transport.SqlServer.AcceptanceTests.csproj index 1dfd0bcd9..c1900c02b 100644 --- a/src/NServiceBus.Transport.SqlServer.AcceptanceTests/NServiceBus.Transport.SqlServer.AcceptanceTests.csproj +++ b/src/NServiceBus.Transport.SqlServer.AcceptanceTests/NServiceBus.Transport.SqlServer.AcceptanceTests.csproj @@ -1,10 +1,11 @@  - net461;netcoreapp3.1;net5.0 + net461;netcoreapp3.1;net6.0 true AcceptanceTests.snk true + $(NoWarn);SYSLIB0021 diff --git a/src/NServiceBus.Transport.SqlServer.IntegrationTests/NServiceBus.Transport.SqlServer.IntegrationTests.csproj b/src/NServiceBus.Transport.SqlServer.IntegrationTests/NServiceBus.Transport.SqlServer.IntegrationTests.csproj index 6a435e1b9..5dbef9e7a 100644 --- a/src/NServiceBus.Transport.SqlServer.IntegrationTests/NServiceBus.Transport.SqlServer.IntegrationTests.csproj +++ b/src/NServiceBus.Transport.SqlServer.IntegrationTests/NServiceBus.Transport.SqlServer.IntegrationTests.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1;net5.0 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true diff --git a/src/NServiceBus.Transport.SqlServer.TransportTests/NServiceBus.Transport.SqlServer.TransportTests.csproj b/src/NServiceBus.Transport.SqlServer.TransportTests/NServiceBus.Transport.SqlServer.TransportTests.csproj index 11353c234..d1854512d 100644 --- a/src/NServiceBus.Transport.SqlServer.TransportTests/NServiceBus.Transport.SqlServer.TransportTests.csproj +++ b/src/NServiceBus.Transport.SqlServer.TransportTests/NServiceBus.Transport.SqlServer.TransportTests.csproj @@ -1,10 +1,11 @@  - net461;netcoreapp3.1;net5.0 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true + $(NoWarn);SYSLIB0021 diff --git a/src/NServiceBus.Transport.SqlServer.UnitTests/NServiceBus.Transport.SqlServer.UnitTests.csproj b/src/NServiceBus.Transport.SqlServer.UnitTests/NServiceBus.Transport.SqlServer.UnitTests.csproj index 8c579a44e..b3613041d 100644 --- a/src/NServiceBus.Transport.SqlServer.UnitTests/NServiceBus.Transport.SqlServer.UnitTests.csproj +++ b/src/NServiceBus.Transport.SqlServer.UnitTests/NServiceBus.Transport.SqlServer.UnitTests.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1;net5.0 + net461;netcoreapp3.1;net6.0 true ..\NServiceBus.snk true