From 375c20e49a1cc125f52bf8609c79bd880fe4253a Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Sun, 21 Feb 2021 14:48:53 -0800 Subject: [PATCH] Move the build to .net 5 (#2294) * Move the build to .net 5 .NET 5 is fine for building projects that target older versions of .NET. This also should fix the AppVeyor build which fails because the latest `coverlet.console` only supports .NET 5. * Some things need .NET core 3.1 available Co-authored-by: Brendan Forster --- .github/workflows/netcore.yml | 7 ++++++- .github/workflows/publish.yml | 2 ++ global.json | 6 ------ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 global.json diff --git a/.github/workflows/netcore.yml b/.github/workflows/netcore.yml index 4bd498fc..5f924b9e 100644 --- a/.github/workflows/netcore.yml +++ b/.github/workflows/netcore.yml @@ -19,9 +19,14 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Setup .NET 5 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.* - name: Setup .NET Core uses: actions/setup-dotnet@v1 - + with: + dotnet-version: 3.1.* - name: Build with dotnet run: ./build.sh --linksources=true --verbosity=verbose shell: bash diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3633058e..79a36c5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,8 @@ jobs: - uses: actions/checkout@v1 - name: Setup .NET Core uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.* - name: Build with dotnet run: ./build.sh --linksources=true --verbosity=verbose diff --git a/global.json b/global.json deleted file mode 100644 index 14afd189..00000000 --- a/global.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "sdk": { - "version": "3.1.200", - "rollForward": "latestMinor" - } -}