global.json

A JSON file at the root of a repository that tells the dotnet command which SDK version to use there.

In more detail

Its sdk.version pins a feature band, rollForward: latestPatch allows servicing fixes in that band, and allowPrerelease: false keeps preview SDKs out. If the SDK is missing, commands fail early with a clear message.

Example

{ "sdk": { "version": "10.0.100", "rollForward": "latestPatch" } }

Related terms

Taught in

References