From 176ec96d1af82ee4dcfe6e4c9e87794eafe83a42 Mon Sep 17 00:00:00 2001 From: Brett White Date: Mon, 18 Nov 2024 13:32:14 -0800 Subject: [PATCH] Install all .NET versions in pipeline to fix run tests task --- .github/workflows/dotnetcore.yml | 12 +++++++++++- build/template-Build-run-tests-sign.yml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index cfef45dc72..79642ff238 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -28,7 +28,17 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4.1.1 - + + - name: Setup .NET 6.0.x + uses: actions/setup-dotnet@v4.1.0 + with: + dotnet-version: 6.0.x + + - name: Setup .NET 8.0.x + uses: actions/setup-dotnet@v4.1.0 + with: + dotnet-version: 8.0.x + - name: Setup .NET 9.x uses: actions/setup-dotnet@v4.1.0 with: diff --git a/build/template-Build-run-tests-sign.yml b/build/template-Build-run-tests-sign.yml index 34660b298b..4c79d9baa9 100644 --- a/build/template-Build-run-tests-sign.yml +++ b/build/template-Build-run-tests-sign.yml @@ -7,6 +7,24 @@ steps: - script: echo $(MicrosoftIdentityModelVersion) displayName: 'display MicrosoftIdentityModelVersion' +- task: UseDotNet@2 + displayName: 'Use .Net Core SDK 2.x' + inputs: + version: 2.x + installationPath: $(Agent.ToolsDirectory)/dotnet + +- task: UseDotNet@2 + displayName: 'Use .Net Core SDK 6.x' + inputs: + version: 6.x + installationPath: $(Agent.ToolsDirectory)/dotnet + +- task: UseDotNet@2 + displayName: 'Use .Net Core SDK 8.x' + inputs: + version: 8.x + installationPath: $(Agent.ToolsDirectory)/dotnet + - task: UseDotNet@2 displayName: 'Use .Net Core SDK 9.x' inputs: