Skip to content

Commit 0b5f81d

Browse files
authored
feat: add global.json to use latest SDK (#479)
Add a [global.json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) file to keep the used [SDK](https://dotnet.microsoft.com/en-us/download/dotnet) up-to-date.
1 parent af88c2a commit 0b5f81d

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ jobs:
116116
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
117117
with:
118118
fetch-depth: 0
119+
- name: Setup .NET
120+
uses: actions/setup-dotnet@v4
121+
with:
122+
dotnet-version: |
123+
6.0.x
124+
7.0.x
125+
8.0.x
119126
- name: Setup MSBuild
120127
uses: microsoft/setup-msbuild@v2
121128
- name: Setup VSTest

.github/workflows/release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ jobs:
164164
run: |
165165
version="${GITHUB_REF#refs/heads/release/}"
166166
git tag "${version}"
167+
- name: Setup .NET
168+
uses: actions/setup-dotnet@v4
169+
with:
170+
dotnet-version: |
171+
6.0.x
172+
7.0.x
173+
8.0.x
167174
- name: Setup MSBuild
168175
uses: microsoft/setup-msbuild@v2
169176
- name: Setup VSTest

Testably.Abstractions.sln

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_", "_", "{94F99274-3518-45
1313
Directory.Build.props = Directory.Build.props
1414
Directory.Packages.props = Directory.Packages.props
1515
Feature.Flags.props = Feature.Flags.props
16+
global.json = global.json
1617
LICENSE = LICENSE
1718
nuget.config = nuget.config
1819
README.md = README.md

global.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.201",
4+
"rollForward": "latestMinor"
5+
}
6+
}

0 commit comments

Comments
 (0)