From 013b914f39df748e1984542c61014bb44c6defd4 Mon Sep 17 00:00:00 2001 From: msbw2 Date: Mon, 18 Nov 2024 14:34:24 -0800 Subject: [PATCH] Install all .NET versions in pipeline to fix run tests task (#3018) --- build/template-Build-run-tests-sign.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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: