From a0cf8b6d7b9ae2f538a09394c00e273a9aee9581 Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Thu, 6 Nov 2025 08:32:34 +0000 Subject: [PATCH] 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 --- global.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 000000000..5cc6b13a6 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "rollForward": "latestMajor", + "version": "8.0" + } +} +