Skip to content

Commit 21d6506

Browse files
committed
Added global.json file to force which version of compiler is used when building
1 parent ecdc838 commit 21d6506

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
env:
22-
DOTNET_VERSION: 8.x.x
22+
DOTNET_VERSION: 8.0.100 # same version that's in global.json. Use low version so clients can use it with an older version of compiler
2323
SRC_DIRECTORY_PATH_LIB: ${{ github.workspace }}/src
2424
NUGET_VERSION: ${{ github.event.inputs.nuget_version_override || '0.1.0-preview' }}.${{ github.run_number }}
2525
PUSH_NUGET: ${{ github.event.inputs.push_nuget || false }}

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.100",
4+
"rollForward": "disable"
5+
}
6+
}

0 commit comments

Comments
 (0)