From 6931b347959852c0e5d16895fc1fe987f5e5eb54 Mon Sep 17 00:00:00 2001 From: Eduward Post <38214928+eduwardpost@users.noreply.github.com> Date: Mon, 25 Nov 2024 00:43:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Setup=20global.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-nuget.yml | 2 ++ src/global.json | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 src/global.json diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 176275e..6e714f1 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -38,6 +38,8 @@ jobs: # Install the .NET SDK indicated in the global.json file - name: Setup .NET uses: actions/setup-dotnet@v4 + with: + global-json-file: './src/global.json' # Create the NuGet package in the folder from the environment variable NuGetDirectory - run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} diff --git a/src/global.json b/src/global.json new file mode 100644 index 0000000..0cc2bd4 --- /dev/null +++ b/src/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "allowPrerelease": false, + "rollForward": "latestFeature", + "version": "8.0.404" + } +} \ No newline at end of file