Skip to content

Commit b325411

Browse files
Prep for NSB10 - Update global.json (#7442)
* Prep for NSB10 - Update global.json Update global.json to .NET10 preview * Update workflow files
1 parent 3c1d75c commit b325411

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

.github/workflows/build-samples-and-snippets.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
- name: Setup .NET SDK
1717
uses: actions/[email protected]
1818
with:
19-
dotnet-version: |
20-
9.0.x
21-
8.0.x
19+
global-json-file: global.json
2220
- name: Add MSBuild to PATH
2321
uses: microsoft/setup-msbuild@v2
2422
- name: Restore NuGet Cache

.github/workflows/run-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
git config user.name "internalautomation[bot]"
3232
- uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 9.0.x
34+
global-json-file: global.json
3535
- uses: actions/setup-node@v4
3636
with:
3737
node-version: 20

.github/workflows/validate-pull-requests.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
- name: Setup .NET SDK
1414
uses: actions/[email protected]
1515
with:
16-
dotnet-version: |
17-
9.0.x
18-
8.0.x
16+
global-json-file: global.json
1917
# Caching is done to limit data transfer on each PR, not to optimize CI speed
2018
- name: Check docstool version for cache
2119
run: |
@@ -42,9 +40,7 @@ jobs:
4240
- name: Setup .NET SDK
4341
uses: actions/[email protected]
4442
with:
45-
dotnet-version: |
46-
9.0.x
47-
8.0.x
43+
global-json-file: global.json
4844
- name: Run integrity tests
4945
run: dotnet test tests/IntegrityTests/IntegrityTests.csproj --configuration Release --logger "GitHubActions;report-warnings=false"
5046
build-projects:
@@ -56,9 +52,7 @@ jobs:
5652
- name: Setup .NET SDK
5753
uses: actions/[email protected]
5854
with:
59-
dotnet-version: |
60-
9.0.x
61-
8.0.x
55+
global-json-file: global.json
6256
- name: Add MSBuild to PATH
6357
uses: microsoft/setup-msbuild@v2
6458
- name: Build affected samples & snippets

.github/workflows/verify-master.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
- name: Setup .NET SDK
1717
uses: actions/[email protected]
1818
with:
19-
dotnet-version: |
20-
9.0.x
21-
8.0.x
19+
global-json-file: global.json
2220
# Caching is done to limit data transfer on each PR, not to optimize CI speed
2321
- name: Check docstool version for cache
2422
run: |
@@ -63,9 +61,7 @@ jobs:
6361
- name: Setup .NET SDK
6462
uses: actions/[email protected]
6563
with:
66-
dotnet-version: |
67-
9.0.x
68-
8.0.x
64+
global-json-file: global.json
6965
- name: Run integrity tests
7066
run: dotnet test tests/IntegrityTests/IntegrityTests.csproj --configuration Release --logger "GitHubActions;report-warnings=false"
7167
- name: Notify Slack on failure

global.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
3+
"version": "10.0.0",
4+
"allowPrerelease": true,
45
"rollForward": "latestFeature"
56
}
6-
}
7+
}

0 commit comments

Comments
 (0)