From eaf444fa41787b4d63fbda0fd881a5d66ecff6ae Mon Sep 17 00:00:00 2001 From: Brett White Date: Mon, 18 Nov 2024 13:49:29 -0800 Subject: [PATCH] Install all .NET versions in pipeline to fix run tests task --- .github/workflows/dotnetcore.yml | 15 +++++++++++++++ build/template-install-dependencies.yaml | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 4d2b788d7..774e73292 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -26,6 +26,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.2.1 + - name: Setup .NET 6.0.x + uses: actions/setup-dotnet@v4.1.0 + with: + dotnet-version: 6.0.x + + - name: Setup .NET 7.0.x + uses: actions/setup-dotnet@v4.1.0 + with: + dotnet-version: 7.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.0.x uses: actions/setup-dotnet@v4.1.0 with: diff --git a/build/template-install-dependencies.yaml b/build/template-install-dependencies.yaml index f0213ea4b..191df3dd0 100644 --- a/build/template-install-dependencies.yaml +++ b/build/template-install-dependencies.yaml @@ -3,6 +3,26 @@ #install dotnet core steps: +- task: UseDotNet@2 + displayName: 'Use .NET SDK 3.1' + inputs: + version: 3.1.x + +- task: UseDotNet@2 + displayName: 'Use .NET SDK 6.0.x' + inputs: + version: 6.0.x + +- task: UseDotNet@2 + displayName: 'Use .NET SDK 7.0.x' + inputs: + version: 7.0.x + +- task: UseDotNet@2 + displayName: 'Use .NET SDK 8.0.x' + inputs: + version: 8.0.x + - task: UseDotNet@2 displayName: 'Use .NET SDK 9.0.x' inputs: