VC-Build problem on NET 5 and NET6

Our vc-build tool is currently working on Net Core 3.1 and could have problems running on NET5 and NET6.

To use vc-build before the release of a version for Net 5, you could create global.json file to the folder with your projects (or upper by hierarchy).
Here is the possible global.json content t use the latest 3.x.x sdk:

{
  "sdk": {
    "version": "3.1.0",
	"rollForward": "latestMinor"
  }
}

or you can create a new global.json file in the current directory by executing the dotnet new command, similar to the following example:

dotnet new globaljson --sdk-version 3.1.0 --roll-forward  latestMinor
4 Likes