Skip to content

Commit a0cf8b6

Browse files
committed
global.json: add global.json file to lock SDK ver
Add a global.json file to the project to make it clearer that we should be using _at least_ version 8.x of the .NET SDK. This can help when building locally without a valid .NET Runtime version installed, to make it clear what the issue is. We set the roll-forward policy to `latestMajor` meaning we will look for any SDK major version from the set version forward. In this case, since we set 8.0, this will match 8.x, 9.x, 10.x etc. When we move to a newer runtime target (probably `net10.0`) we'll want to bump this minimum SDK version to 10.0. Signed-off-by: Matthew John Cheetham <[email protected]>
1 parent 718810c commit a0cf8b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

global.json

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

0 commit comments

Comments
 (0)