Skip to content

Commit ac5d8ff

Browse files
[build] install .NET 10.x for BAR manifest (#10040)
The `Publish symbols and Push to Maestro` job and `generate and publish BAR manifest` step fail with: Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 10.0. Either target .NET 9.0 or lower, or use a version of the .NET SDK that supports .NET 10.0. Download the .NET SDK from https://aka.ms/dotnet/download It looks like we were using .NET 9 previews in the past: - task: UseDotNet@2 displayName: Install .NET 9.x inputs: version: 9.x includePreviewVersions: true So, we can use .NET 10 previews for this during .NET 10 development.
1 parent 5e1b302 commit ac5d8ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ extends:
347347
submodules: recursive
348348

349349
- task: UseDotNet@2
350-
displayName: Install .NET 9.x
350+
displayName: Install .NET 10.x
351351
inputs:
352-
version: 9.x
352+
version: 10.x
353353
includePreviewVersions: true
354354

355355
# Download symbols to be published to the symbols artifact drop declared above

0 commit comments

Comments
 (0)