From f6efa0a9810be7c4dd10e75600b73fcebca6dd74 Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Fri, 13 Dec 2024 16:10:45 -0800 Subject: [PATCH] [.NET] Updating to .NET 9 (#9539) The focus of these changes is to update the current .NET SDK and targets to support .NET 9. --- eng/pipelines/templates/steps/install-dotnet.yml | 2 +- global.json | 2 +- .../Azure.Sdk.Tools.SnippetGenerator.Tests.csproj | 2 +- .../Azure.Sdk.Tools.SnippetGenerator.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/templates/steps/install-dotnet.yml b/eng/pipelines/templates/steps/install-dotnet.yml index 27026c5ab69..e03b74a1521 100644 --- a/eng/pipelines/templates/steps/install-dotnet.yml +++ b/eng/pipelines/templates/steps/install-dotnet.yml @@ -23,7 +23,7 @@ steps: # https://github.com/Azure/azure-sdk-tools/pull/5405#discussion_r1105006774 # https://github.com/Azure/azure-sdk-tools/pull/5405 packageType: sdk - version: 9.0.x + version: 8.0.x # performMultiLevelLookup comes into play when given .NET executable target runtime is different # than the installed .NET SDK. Without this, such runtime would not be found. performMultiLevelLookup: true diff --git a/global.json b/global.json index eb2880c5bbf..e94e8ded643 100644 --- a/global.json +++ b/global.json @@ -3,7 +3,7 @@ "Microsoft.Build.Traversal": "3.2.0" }, "sdk": { - "version": "8.0.302", + "version": "9.0.101", "rollForward": "feature" } } diff --git a/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator.Tests/Azure.Sdk.Tools.SnippetGenerator.Tests.csproj b/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator.Tests/Azure.Sdk.Tools.SnippetGenerator.Tests.csproj index a59400557d4..ff29ca17cf9 100644 --- a/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator.Tests/Azure.Sdk.Tools.SnippetGenerator.Tests.csproj +++ b/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator.Tests/Azure.Sdk.Tools.SnippetGenerator.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net8.0;net9.0 false diff --git a/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator/Azure.Sdk.Tools.SnippetGenerator.csproj b/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator/Azure.Sdk.Tools.SnippetGenerator.csproj index 4eac7d58de9..5b70e26e6ed 100644 --- a/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator/Azure.Sdk.Tools.SnippetGenerator.csproj +++ b/tools/snippet-generator/Azure.Sdk.Tools.SnippetGenerator/Azure.Sdk.Tools.SnippetGenerator.csproj @@ -2,7 +2,7 @@ Exe Generates code snippets for readmes in the azure-sdk-for-net repo. - net8.0 + net8.0;net9.0 true snippet-generator 1.0.0