global.json Template
Purpose
global.json pins the SDK used by the repository and improves build reproducibility.
Template
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}Rules
Use an exact installed SDK version.
Do not use preview SDKs for production branches.
Update this file deliberately during platform upgrades.
Build agents must have a compatible SDK installed.
.NET 11 Preview Template
Use only in approved preview repositories:
Replace with the exact approved SDK version.
Was this helpful?

