Continuous Delivery | DevOps | Software Development
Unlimited versions of your site with Netlify 
Jan Vermeir 18 May, 2021
dotnet newand you want use a specific version of .NET Core SDK you should add a global.json file (before executing the “dotnet new” command) like this:
{ "sdk": { "version": "1.0.0-preview2-003121" } }The SDK’s in Windows are installed in the Program Files folder (or Program Files (x86) if you have a 32bit Windows) so let’s take a look there:
The .NET Core Team has decided todrop *.xproj/project.json
and go back to MSBuild and*.csproj
, check here
SDK Folder Name | .NET Core Version | Project Type |
---|---|---|
1.0.0-preview2-003131 | 1.0.1 | json |
1.0.0-preview2-003133 | 1.0.1 | json |
1.0.0-preview2-003156 | 1.0.3 | json |
1.0.0-preview4-004233 | 1.0.1 | csproj |
1.0.0-preview2-1-003177 | 1.1.0 | json |
.NET Core 1.0.2 is missing in my overview, this is because this version was a patch for MacOS Sierra users, see hereSo, let’s say you want to create a .NET Core application with 1.0.3, add a global.json file with this content:
{ "sdk": { "version": "1.0.0-preview2-003156" } }And then run the command: dotnet new