From 2a97dd06e82cb67c5be8a7c7d189bef8048a3a86 Mon Sep 17 00:00:00 2001 From: Andy <91510251+andyk-ms@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:06:19 -0700 Subject: [PATCH] SDK release on 2024-03-28 with update to Dotnetty 0.7.6 (#3447) --- e2e/test/E2ETests.csproj | 8 ++-- .../FileUploadSample/FileUploadSample.csproj | 3 -- .../MessageReceiveSample.csproj | 3 -- .../MethodSample/MethodSample.csproj | 3 -- .../TwinSample/TwinSample.csproj | 3 -- .../DeviceReconnectionSample.csproj | 3 -- .../X509DeviceCertWithChainSample.csproj | 3 -- .../PnpConvention/PnpHelpers.csproj | 3 -- .../TemperatureController.csproj | 3 -- .../Thermostat/Thermostat.csproj | 3 -- .../src/Microsoft.Azure.Devices.Client.csproj | 8 ++-- ...icrosoft.Azure.Devices.Client.Tests.csproj | 12 ++--- .../Microsoft.Azure.Devices.Tests.csproj | 6 +-- .../X509Sample/X509Sample.csproj | 3 -- .../SymmetricKeySample.csproj | 3 -- ...e.Devices.Provisioning.Client.Tests.csproj | 4 +- .../EnrollmentGroupSample.csproj | 3 -- ....Devices.Provisioning.Service.Tests.csproj | 4 +- ...s.Provisioning.Transport.Amqp.Tests.csproj | 4 +- ...s.Provisioning.Transport.Http.Tests.csproj | 4 +- ...Devices.Provisioning.Transport.Mqtt.csproj | 8 ++-- ...s.Provisioning.Transport.Mqtt.Tests.csproj | 4 +- ...ces.Provisioning.Security.Tpm.Tests.csproj | 6 +-- ...icrosoft.Azure.Devices.Shared.Tests.csproj | 6 +-- supported_platforms.md | 7 +-- versions.csv | 4 +- versions.json | 2 +- vsts/build-test-nuget.yml | 16 +++---- vsts/test-release-nuget.yaml | 18 ++++---- vsts/vsts.yaml | 45 +++++++------------ 30 files changed, 74 insertions(+), 128 deletions(-) diff --git a/e2e/test/E2ETests.csproj b/e2e/test/E2ETests.csproj index 73f695d112..f311ccf202 100644 --- a/e2e/test/E2ETests.csproj +++ b/e2e/test/E2ETests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0;net472 - net6.0;net7.0 + net6.0;net8.0;net472 + net6.0;net8.0 - False + False 9.0 true false @@ -34,7 +34,7 @@ - + diff --git a/iothub/device/samples/getting started/FileUploadSample/FileUploadSample.csproj b/iothub/device/samples/getting started/FileUploadSample/FileUploadSample.csproj index 518c3166bf..2621440c1f 100644 --- a/iothub/device/samples/getting started/FileUploadSample/FileUploadSample.csproj +++ b/iothub/device/samples/getting started/FileUploadSample/FileUploadSample.csproj @@ -10,9 +10,6 @@ - - - diff --git a/iothub/device/samples/getting started/MessageReceiveSample/MessageReceiveSample.csproj b/iothub/device/samples/getting started/MessageReceiveSample/MessageReceiveSample.csproj index 60911a863b..3e1e466fa1 100644 --- a/iothub/device/samples/getting started/MessageReceiveSample/MessageReceiveSample.csproj +++ b/iothub/device/samples/getting started/MessageReceiveSample/MessageReceiveSample.csproj @@ -9,9 +9,6 @@ - - - diff --git a/iothub/device/samples/getting started/MethodSample/MethodSample.csproj b/iothub/device/samples/getting started/MethodSample/MethodSample.csproj index f83d9249e6..7cb0a69c4c 100644 --- a/iothub/device/samples/getting started/MethodSample/MethodSample.csproj +++ b/iothub/device/samples/getting started/MethodSample/MethodSample.csproj @@ -9,9 +9,6 @@ - - - diff --git a/iothub/device/samples/getting started/TwinSample/TwinSample.csproj b/iothub/device/samples/getting started/TwinSample/TwinSample.csproj index f5b380c947..0e7064a499 100644 --- a/iothub/device/samples/getting started/TwinSample/TwinSample.csproj +++ b/iothub/device/samples/getting started/TwinSample/TwinSample.csproj @@ -8,9 +8,6 @@ - - - diff --git a/iothub/device/samples/how to guides/DeviceReconnectionSample/DeviceReconnectionSample.csproj b/iothub/device/samples/how to guides/DeviceReconnectionSample/DeviceReconnectionSample.csproj index 57af937a4b..4932b1e395 100644 --- a/iothub/device/samples/how to guides/DeviceReconnectionSample/DeviceReconnectionSample.csproj +++ b/iothub/device/samples/how to guides/DeviceReconnectionSample/DeviceReconnectionSample.csproj @@ -10,9 +10,6 @@ - - - diff --git a/iothub/device/samples/how to guides/X509DeviceCertWithChainSample/X509DeviceCertWithChainSample.csproj b/iothub/device/samples/how to guides/X509DeviceCertWithChainSample/X509DeviceCertWithChainSample.csproj index c3b3b01c10..28e8fc6451 100644 --- a/iothub/device/samples/how to guides/X509DeviceCertWithChainSample/X509DeviceCertWithChainSample.csproj +++ b/iothub/device/samples/how to guides/X509DeviceCertWithChainSample/X509DeviceCertWithChainSample.csproj @@ -8,9 +8,6 @@ - - - diff --git a/iothub/device/samples/solutions/PnpDeviceSamples/PnpConvention/PnpHelpers.csproj b/iothub/device/samples/solutions/PnpDeviceSamples/PnpConvention/PnpHelpers.csproj index f5b687e197..6fc57db9c9 100644 --- a/iothub/device/samples/solutions/PnpDeviceSamples/PnpConvention/PnpHelpers.csproj +++ b/iothub/device/samples/solutions/PnpDeviceSamples/PnpConvention/PnpHelpers.csproj @@ -12,9 +12,6 @@ - - - diff --git a/iothub/device/samples/solutions/PnpDeviceSamples/TemperatureController/TemperatureController.csproj b/iothub/device/samples/solutions/PnpDeviceSamples/TemperatureController/TemperatureController.csproj index d4be093f6a..f09ee74a83 100644 --- a/iothub/device/samples/solutions/PnpDeviceSamples/TemperatureController/TemperatureController.csproj +++ b/iothub/device/samples/solutions/PnpDeviceSamples/TemperatureController/TemperatureController.csproj @@ -10,9 +10,6 @@ - - - diff --git a/iothub/device/samples/solutions/PnpDeviceSamples/Thermostat/Thermostat.csproj b/iothub/device/samples/solutions/PnpDeviceSamples/Thermostat/Thermostat.csproj index dfef71031c..235b844b87 100644 --- a/iothub/device/samples/solutions/PnpDeviceSamples/Thermostat/Thermostat.csproj +++ b/iothub/device/samples/solutions/PnpDeviceSamples/Thermostat/Thermostat.csproj @@ -11,9 +11,6 @@ - - - diff --git a/iothub/device/src/Microsoft.Azure.Devices.Client.csproj b/iothub/device/src/Microsoft.Azure.Devices.Client.csproj index 6701fa9779..8044b4e824 100644 --- a/iothub/device/src/Microsoft.Azure.Devices.Client.csproj +++ b/iothub/device/src/Microsoft.Azure.Devices.Client.csproj @@ -34,7 +34,7 @@ - 1.42.2 + 1.42.3 Microsoft Azure IoT Device Client SDK True True @@ -86,9 +86,9 @@ - - - + + + diff --git a/iothub/device/tests/Microsoft.Azure.Devices.Client.Tests.csproj b/iothub/device/tests/Microsoft.Azure.Devices.Client.Tests.csproj index e2e68acb2e..2333b7375e 100644 --- a/iothub/device/tests/Microsoft.Azure.Devices.Client.Tests.csproj +++ b/iothub/device/tests/Microsoft.Azure.Devices.Client.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0;net472 - net6.0;net7.0 + net6.0;net8.0;net472 + net6.0;net8.0 - False + False 8.0 false @@ -20,9 +20,9 @@ - - - + + + diff --git a/iothub/service/tests/Microsoft.Azure.Devices.Tests.csproj b/iothub/service/tests/Microsoft.Azure.Devices.Tests.csproj index a5fa144fa6..5a7937c5c1 100644 --- a/iothub/service/tests/Microsoft.Azure.Devices.Tests.csproj +++ b/iothub/service/tests/Microsoft.Azure.Devices.Tests.csproj @@ -1,10 +1,10 @@  - net6.0;net7.0;net472 - net6.0;net7.0 + net6.0;net8.0;net472 + net6.0;net8.0 - False + False 8.0 false false diff --git a/provisioning/device/samples/getting started/X509Sample/X509Sample.csproj b/provisioning/device/samples/getting started/X509Sample/X509Sample.csproj index 810fb41ece..93a2d0e359 100644 --- a/provisioning/device/samples/getting started/X509Sample/X509Sample.csproj +++ b/provisioning/device/samples/getting started/X509Sample/X509Sample.csproj @@ -16,9 +16,6 @@ - - - diff --git a/provisioning/device/samples/how to guides/SymmetricKeySample/SymmetricKeySample.csproj b/provisioning/device/samples/how to guides/SymmetricKeySample/SymmetricKeySample.csproj index e870459e51..d4632ce2bb 100644 --- a/provisioning/device/samples/how to guides/SymmetricKeySample/SymmetricKeySample.csproj +++ b/provisioning/device/samples/how to guides/SymmetricKeySample/SymmetricKeySample.csproj @@ -15,9 +15,6 @@ - - - diff --git a/provisioning/device/tests/Microsoft.Azure.Devices.Provisioning.Client.Tests.csproj b/provisioning/device/tests/Microsoft.Azure.Devices.Provisioning.Client.Tests.csproj index cee2404e56..61219c1f9b 100644 --- a/provisioning/device/tests/Microsoft.Azure.Devices.Provisioning.Client.Tests.csproj +++ b/provisioning/device/tests/Microsoft.Azure.Devices.Provisioning.Client.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0 + net6.0;net8.0 - False 8.0 + False 8.0 true false diff --git a/provisioning/service/samples/getting started/EnrollmentGroupSample/EnrollmentGroupSample.csproj b/provisioning/service/samples/getting started/EnrollmentGroupSample/EnrollmentGroupSample.csproj index aedb005c7e..db780d015b 100644 --- a/provisioning/service/samples/getting started/EnrollmentGroupSample/EnrollmentGroupSample.csproj +++ b/provisioning/service/samples/getting started/EnrollmentGroupSample/EnrollmentGroupSample.csproj @@ -9,9 +9,6 @@ - - - diff --git a/provisioning/service/tests/Microsoft.Azure.Devices.Provisioning.Service.Tests.csproj b/provisioning/service/tests/Microsoft.Azure.Devices.Provisioning.Service.Tests.csproj index 95cd1fbcdc..e76d379104 100644 --- a/provisioning/service/tests/Microsoft.Azure.Devices.Provisioning.Service.Tests.csproj +++ b/provisioning/service/tests/Microsoft.Azure.Devices.Provisioning.Service.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0 + net6.0;net8.0 - False 8.0 + False 8.0 true false diff --git a/provisioning/transport/amqp/tests/Microsoft.Azure.Devices.Provisioning.Transport.Amqp.Tests.csproj b/provisioning/transport/amqp/tests/Microsoft.Azure.Devices.Provisioning.Transport.Amqp.Tests.csproj index 38c6095f50..29446a93b7 100644 --- a/provisioning/transport/amqp/tests/Microsoft.Azure.Devices.Provisioning.Transport.Amqp.Tests.csproj +++ b/provisioning/transport/amqp/tests/Microsoft.Azure.Devices.Provisioning.Transport.Amqp.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0 + net6.0;net8.0 - False + False 8.0 true false diff --git a/provisioning/transport/http/tests/Microsoft.Azure.Devices.Provisioning.Transport.Http.Tests.csproj b/provisioning/transport/http/tests/Microsoft.Azure.Devices.Provisioning.Transport.Http.Tests.csproj index 957e2bd46c..b63e1b0532 100644 --- a/provisioning/transport/http/tests/Microsoft.Azure.Devices.Provisioning.Transport.Http.Tests.csproj +++ b/provisioning/transport/http/tests/Microsoft.Azure.Devices.Provisioning.Transport.Http.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0 + net6.0;net8.0 - False 8.0 + False 8.0 true false diff --git a/provisioning/transport/mqtt/src/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj b/provisioning/transport/mqtt/src/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj index f9364d93b1..30d6abf097 100644 --- a/provisioning/transport/mqtt/src/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj +++ b/provisioning/transport/mqtt/src/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj @@ -30,7 +30,7 @@ - 1.17.4 + 1.17.5 Microsoft Azure IoT Provisioning Device Client MQTT Transport True True @@ -107,9 +107,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/provisioning/transport/mqtt/tests/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.Tests.csproj b/provisioning/transport/mqtt/tests/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.Tests.csproj index b962548237..8d67fef893 100644 --- a/provisioning/transport/mqtt/tests/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.Tests.csproj +++ b/provisioning/transport/mqtt/tests/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.Tests.csproj @@ -1,9 +1,9 @@  - net6.0;net7.0 + net6.0;net8.0 - False 8.0 + False 8.0 true false diff --git a/security/tpm/tests/Microsoft.Azure.Devices.Provisioning.Security.Tpm.Tests.csproj b/security/tpm/tests/Microsoft.Azure.Devices.Provisioning.Security.Tpm.Tests.csproj index 7610134ad4..be0e17162d 100644 --- a/security/tpm/tests/Microsoft.Azure.Devices.Provisioning.Security.Tpm.Tests.csproj +++ b/security/tpm/tests/Microsoft.Azure.Devices.Provisioning.Security.Tpm.Tests.csproj @@ -1,10 +1,10 @@  - net6.0;net7.0;net472 - net6.0;net7.0 + net6.0;net8.0;net472 + net6.0;net8.0 - False 8.0 + False 8.0 true false diff --git a/shared/tests/Microsoft.Azure.Devices.Shared.Tests.csproj b/shared/tests/Microsoft.Azure.Devices.Shared.Tests.csproj index 78d4a55ae4..94d204cb8c 100644 --- a/shared/tests/Microsoft.Azure.Devices.Shared.Tests.csproj +++ b/shared/tests/Microsoft.Azure.Devices.Shared.Tests.csproj @@ -1,10 +1,10 @@  Microsoft.Azure.Devices.Shared.Tests - net6.0;net7.0;net472 - net6.0;net7.0 + net6.0;net8.0;net472 + net6.0;net8.0 - False + False 8.0 false diff --git a/supported_platforms.md b/supported_platforms.md index f109f4af1a..ef0afc34b5 100644 --- a/supported_platforms.md +++ b/supported_platforms.md @@ -6,11 +6,9 @@ This SDK is tested nightly on a mix of .NET implementations on both Windows 10 a The NuGet packages provide support for the following .NET versions: - .NET 6.0 -- .NET 7.0 - .NET Standard 2.1 - .NET Standard 2.0 - .NET Framework 4.7.2 (IoT Hub SDKs only) -- .NET Framework 4.5.1 (IoT Hub SDKs only) This SDK _may_ work with newer versions of .NET, but there are no guarantees that they will _always_ work for those until we officially add support for them nor are there guarantees that we will fix bugs that are only present on those versions. @@ -24,9 +22,8 @@ Nightly test platform details: .NET versions tested on - .NET 6.0 -- .NET 7.0 +- .NET 8.0 - .NET Framework 4.7.2 (only IoT Hub SDKs tested) -- .NET Framework 4.5.1 (only IoT Hub SDKs tested) Default locale: en_US, platform encoding: Cp1252 @@ -41,7 +38,7 @@ Nightly test platform details: .NET versions tested on: - .NET 6.0 -- .NET 7.0 +- .NET 8.0 Default locale: en_US, platform encoding: UTF-8 diff --git a/versions.csv b/versions.csv index da16ecb3c9..de06416107 100644 --- a/versions.csv +++ b/versions.csv @@ -1,10 +1,10 @@ AssemblyPath, Version -iothub\device\src\Microsoft.Azure.Devices.Client.csproj, 1.42.2 +iothub\device\src\Microsoft.Azure.Devices.Client.csproj, 1.42.3 iothub\service\src\Microsoft.Azure.Devices.csproj, 1.39.1 shared\src\Microsoft.Azure.Devices.Shared.csproj, 1.30.4 provisioning\device\src\Microsoft.Azure.Devices.Provisioning.Client.csproj, 1.19.4 provisioning\service\src\Microsoft.Azure.Devices.Provisioning.Service.csproj, 1.18.4 provisioning\transport\amqp\src\Microsoft.Azure.Devices.Provisioning.Transport.Amqp.csproj, 1.16.6 provisioning\transport\http\src\Microsoft.Azure.Devices.Provisioning.Transport.Http.csproj, 1.15.4 -provisioning\transport\mqtt\src\Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj, 1.17.4 +provisioning\transport\mqtt\src\Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj, 1.17.5 security\tpm\src\Microsoft.Azure.Devices.Provisioning.Security.Tpm.csproj, 1.14.4 diff --git a/versions.json b/versions.json index 6c42283522..d4f393f298 100644 --- a/versions.json +++ b/versions.json @@ -1,6 +1,6 @@ [ { - "version" : "1.42.2" + "version" : "1.42.3" }, { "version" : "2.0.0-preview007", diff --git a/vsts/build-test-nuget.yml b/vsts/build-test-nuget.yml index 54c925aeef..71c29ebfa6 100644 --- a/vsts/build-test-nuget.yml +++ b/vsts/build-test-nuget.yml @@ -61,8 +61,8 @@ jobs: matrix: .Net 6.0: FRAMEWORK: net6.0 - .Net 7.0: - FRAMEWORK: net7.0 + .Net 8.0: + FRAMEWORK: net8.0 condition: and(succeeded(), ne(variables.runTests, 'false')) dependsOn: Build_Packages @@ -99,10 +99,10 @@ jobs: installationPath: $(Agent.ToolsDirectory)/net - task: UseDotNet@2 - displayName: 'Use .NET SDK 7.x' + displayName: 'Use .NET SDK 8.x' inputs: packageType: sdk - version: 7.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/net @@ -205,8 +205,8 @@ jobs: matrix: .Net 6.0: FRAMEWORK: net6.0 - .Net 7.0: - FRAMEWORK: net7.0 + .Net 8.0: + FRAMEWORK: net8.0 condition: and(succeeded(), ne(variables.runTests, 'false')) dependsOn: Build_Packages @@ -242,10 +242,10 @@ jobs: installationPath: $(Agent.ToolsDirectory)/net - task: UseDotNet@2 - displayName: 'Use .NET SDK 7.x' + displayName: 'Use .NET SDK 8.x' inputs: packageType: sdk - version: 7.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/net diff --git a/vsts/test-release-nuget.yaml b/vsts/test-release-nuget.yaml index 6b8dea1363..6a141015d9 100644 --- a/vsts/test-release-nuget.yaml +++ b/vsts/test-release-nuget.yaml @@ -13,8 +13,8 @@ jobs: matrix: .Net 6.0: FRAMEWORK: net6.0 - .Net 5.0: - FRAMEWORK: net5.0 + .Net 8.0: + FRAMEWORK: net8.0 .Net Core 3.1: FRAMEWORK: netcoreapp3.1 .Net Core 2.1.30: @@ -41,10 +41,10 @@ jobs: installationPath: $(Agent.ToolsDirectory)/dotnet - task: UseDotNet@2 - displayName: 'Use .NET SDK 5.0' + displayName: 'Use .NET SDK 8.0' inputs: packageType: sdk - version: 5.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/dotnet @@ -172,16 +172,14 @@ jobs: matrix: .Net 6.0: FRAMEWORK: net6.0 - .Net 5.0: - FRAMEWORK: net5.0 + .Net 8.0: + FRAMEWORK: net8.0 .Net Core 3.1: FRAMEWORK: netcoreapp3.1 .Net Core 2.1.30: FRAMEWORK: netcoreapp2.1.30 .Net Framework 4.7.2: FRAMEWORK: net472 - .Net Framework 4.5.1: - FRAMEWORK: net451 condition: succeeded() pool: @@ -204,10 +202,10 @@ jobs: installationPath: $(Agent.ToolsDirectory)/dotnet - task: UseDotNet@2 - displayName: 'Use .NET SDK 5.0' + displayName: 'Use .NET SDK 8.0' inputs: packageType: sdk - version: 5.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/dotnet diff --git a/vsts/vsts.yaml b/vsts/vsts.yaml index e0a90513aa..fac5f3c84b 100644 --- a/vsts/vsts.yaml +++ b/vsts/vsts.yaml @@ -18,10 +18,9 @@ parameters: - default - all - min-matrix - - net7.0 + - net8.0 - net6.0 - net4.7.2 - - net4.5.1 default: default variables: @@ -41,9 +40,8 @@ variables: testNet60: ${{ or(eq(variables['minMatrix'], 'True'), contains(parameters['testTargets'], 'net6.0')) }} # The remaining build/test targets. - testNet70: ${{ or(eq(variables['allTestTargets'], 'True'), contains(parameters['testTargets'], 'net7.0')) }} + testNet80: ${{ or(eq(variables['allTestTargets'], 'True'), contains(parameters['testTargets'], 'net8.0')) }} testNet472: ${{ or(eq(variables['allTestTargets'], 'True'), contains(parameters['testTargets'], 'net4.7.2')) }} - testNet451: ${{ or(eq(variables['allTestTargets'], 'True'), contains(parameters['testTargets'], 'net4.5.1')) }} trigger: batch: true @@ -74,9 +72,9 @@ jobs: FRAMEWORK: net6.0 # Can't find a good way to skip matrix elements so for now we set an environment variable that the script will use to bail out. SHOULD_RUN: ${{ eq(variables['testNet60'], 'True') }} - .NET 7.0: - FRAMEWORK: net7.0 - SHOULD_RUN: ${{ eq(variables['testNet70'], 'True') }} + .NET 8.0: + FRAMEWORK: net8.0 + SHOULD_RUN: ${{ eq(variables['testNet80'], 'True') }} pool: # If this is changed, don't forget to update supported_platforms.md in the root directory. That document outlines what OS we test on and should stay up to date. vmImage: ubuntu-20.04 @@ -91,20 +89,19 @@ jobs: Write-Host "maxParallelJobs: ${{ parameters.maxParallelJobs }}" Write-Host "minMatrix: ${{ variables.minMatrix }}" Write-Host "testNet60: ${{ variables.testNet60 }}" - Write-Host "testNet70: ${{ variables.testNet70 }}" + Write-Host "testNet80: ${{ variables.testNet80 }}" Write-Host "testNetcore31: ${{ variables.testNetcore31 }}" Write-Host "testNetcore21: ${{ variables.testNetcore21 }}" Write-Host "testNet472: ${{ variables.testNet472 }}" - Write-Host "testNet451: ${{ variables.testNet451 }}" # https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops - # Linux requires .NET 7.0 install for tests to run, no matter which framework target is being tested + # Linux requires .NET 8.0 install for tests to run, no matter which framework target is being tested - task: UseDotNet@2 - displayName: 'Use .NET SDK 7.0' + displayName: 'Use .NET SDK 8.0' inputs: packageType: sdk - version: 7.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/dotnet @@ -332,15 +329,12 @@ jobs: .NET 6.0: FRAMEWORK: net6.0 SHOULD_RUN: ${{ eq(variables['testNet60'], 'True') }} - .NET 7.0: - FRAMEWORK: net7.0 - SHOULD_RUN: ${{ eq(variables['testNet70'], 'True') }} + .NET 8.0: + FRAMEWORK: net8.0 + SHOULD_RUN: ${{ eq(variables['testNet80'], 'True') }} .NET 4.7.2: FRAMEWORK: net472 SHOULD_RUN: ${{ eq(variables['testNet472'], 'True') }} - .NET 4.5.1: - FRAMEWORK: net451 - SHOULD_RUN: ${{ eq(variables['testNet451'], 'True') }} pool: # If this is changed, don't forget to update supported_platforms.md in the root directory. That document outlines what OS we test on and should stay up to date. vmImage: windows-2022 @@ -356,11 +350,10 @@ jobs: Write-Host "maxParallelJobs: ${{ parameters.maxParallelJobs }}" Write-Host "minMatrix: ${{ variables.minMatrix }}" Write-Host "testNet60: ${{ variables.testNet60 }}" - Write-Host "testNet70: ${{ variables.testNet70 }}" + Write-Host "testNet80: ${{ variables.testNet80 }}" Write-Host "testNetcore31: ${{ variables.testNetcore31 }}" Write-Host "testNetcore21: ${{ variables.testNetcore21 }}" Write-Host "testNet472: ${{ variables.testNet472 }}" - Write-Host "testNet451: ${{ variables.testNet451 }}" - ${{ if eq(variables['testNet60'], 'True') }}: - task: UseDotNet@2 @@ -371,12 +364,12 @@ jobs: performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/dotnet - - ${{ if eq(variables['testNet70'], 'True') }}: + - ${{ if eq(variables['testNet80'], 'True') }}: - task: UseDotNet@2 - displayName: 'Use .NET SDK 7.0' + displayName: 'Use .NET SDK 8.0' inputs: packageType: sdk - version: 7.x + version: 8.x performMultiLevelLookup: true installationPath: $(Agent.ToolsDirectory)/dotnet @@ -386,12 +379,6 @@ jobs: inputs: script: 'choco install netfx-4.7.2-devpack' - - ${{ if eq(variables['testNet451'], 'True') }}: - - task: CmdLine@2 - displayName: 'Install .NET 4.5.1' - inputs: - script: 'choco install dotnet4.5.1' - - script: | choco install -y squid