dotnet-format includes project loading tests which validate clean project loading for all the common C# & VB project templates. To validate new SDKs, we can simply must remove the SDK pinned in the global.json and run Test.cmd
.
- Install the SDK being validated against.
- Checkout the dotnet-format repo.
git clone https://github.com/dotnet/format.git
- Update the gobal.json by removing the "sdk" configuration. Before:
{
"tools": {
"dotnet": "6.0.103"
},
"sdk": {
"version": "6.0.103"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22166.2"
}
}
After:
{
"tools": {
"dotnet": "6.0.103"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22166.2"
}
}
- Run
Restore.cmd
. - Run
Build.cmd
. - Run
Test.cmd
.
You can report test failures here: https://github.com/dotnet/format/issues