How to pin the .NET SDK version with global.json (rollForward explained)
A global.json file tells the dotnet CLI which SDK to use for a repository, so every developer and every CI agent builds with a compatible SDK. This guide shows how to create one, how the SDK finds it, what each rollForward value allows, and the paths, errorMessage and test runner settings added in the .NET 10 SDK.