From e1a6c71cf910202b29d656d9f921fcf494b6ef37 Mon Sep 17 00:00:00 2001 From: Christian Weiss Date: Mon, 14 Nov 2022 22:02:57 +0100 Subject: [PATCH] Use same .NET SDK for local and CI builds via global.json (#15) --- .github/workflows/ci.yaml | 5 +---- global.json | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 79bed358..28b13991 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,11 +9,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup .NET Core SDK + - name: Setup .NET SDK uses: actions/setup-dotnet@v3 - with: - dotnet-version: 7.0.x - dotnet-quality: 'ga' - name: dotnet build run: dotnet build TodoApi.sln -c Release diff --git a/global.json b/global.json new file mode 100644 index 00000000..1c7274b7 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "7.0.100", + "rollForward": "latestFeature" + } +} \ No newline at end of file