From 7a8346bfab31925dcea0240784ce94e0fff3f518 Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 25 Nov 2025 13:41:13 -0800 Subject: [PATCH 1/3] [MTG] Update target framework to `net10.0` The focus of these changes is to bump to the .NET 10 runtime target. --- packages/http-client-csharp/generator/Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-csharp/generator/Directory.Build.props b/packages/http-client-csharp/generator/Directory.Build.props index a475c3ec9b7..217957558a4 100644 --- a/packages/http-client-csharp/generator/Directory.Build.props +++ b/packages/http-client-csharp/generator/Directory.Build.props @@ -11,7 +11,7 @@ enable - net9.0 + net10.0 Debug AnyCPU $(Platform) From d09f3e09ef3b3bca81f2d1d34ded45ed936eaacc Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 25 Nov 2025 13:55:29 -0800 Subject: [PATCH 2/3] Updating build assets --- packages/http-client-csharp/eng/pipeline/publish.yml | 7 +++++++ packages/http-client-csharp/global.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/http-client-csharp/eng/pipeline/publish.yml b/packages/http-client-csharp/eng/pipeline/publish.yml index c3fe925d271..00da9caad7f 100644 --- a/packages/http-client-csharp/eng/pipeline/publish.yml +++ b/packages/http-client-csharp/eng/pipeline/publish.yml @@ -60,6 +60,13 @@ extends: inputs: displayName: "Install .NET 9" performMultiLevelLookup: true + useGlobalJson: false + version: 9.x + workingDirectory: $(Build.SourcesDirectory)/packages/http-client-csharp + - task: UseDotNet@2 + inputs: + displayName: "Install .NET 10" + performMultiLevelLookup: true useGlobalJson: true workingDirectory: $(Build.SourcesDirectory)/packages/http-client-csharp diff --git a/packages/http-client-csharp/global.json b/packages/http-client-csharp/global.json index cbe802cdb3f..10d86daabda 100644 --- a/packages/http-client-csharp/global.json +++ b/packages/http-client-csharp/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.306", + "version": "10.0.100", "rollForward": "feature" } } From 2d96e8a54ea0381269be0e9a0d3a226b51a8853b Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 25 Nov 2025 14:18:22 -0800 Subject: [PATCH 3/3] Fixing an additional build step --- .../csharp/plugins/logging/Logging.Plugin/src/global.json | 2 +- .../eng/pipeline/templates/ci-stages.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/samples/client/csharp/plugins/logging/Logging.Plugin/src/global.json b/docs/samples/client/csharp/plugins/logging/Logging.Plugin/src/global.json index ef491491b99..10d86daabda 100644 --- a/docs/samples/client/csharp/plugins/logging/Logging.Plugin/src/global.json +++ b/docs/samples/client/csharp/plugins/logging/Logging.Plugin/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.102", + "version": "10.0.100", "rollForward": "feature" } } diff --git a/packages/http-client-csharp/eng/pipeline/templates/ci-stages.yml b/packages/http-client-csharp/eng/pipeline/templates/ci-stages.yml index db4d12d2007..5755b96656b 100644 --- a/packages/http-client-csharp/eng/pipeline/templates/ci-stages.yml +++ b/packages/http-client-csharp/eng/pipeline/templates/ci-stages.yml @@ -50,5 +50,12 @@ stages: inputs: displayName: "Install .NET 9" performMultiLevelLookup: true + useGlobalJson: false + version: 9.x + workingDirectory: $(Build.SourcesDirectory)/packages/http-client-csharp + - task: UseDotNet@2 + inputs: + displayName: "Install .NET 10" + performMultiLevelLookup: true useGlobalJson: true workingDirectory: $(Build.SourcesDirectory)/packages/http-client-csharp