I upgrade my .net core to new version 1.1 but I got error when running my projects built in version 1.0
Severity Code Description Project File Line Suppression State Error Found dotnet SDK, but did not find dotnet.dll at [C:\Program Files\dotnet\sdk\1.0.0-preview2-003121\dotnet.dll] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 262
You can have 1.0 and 1.1 installed side-by-side.
The dotnet command (dotnet.dll) will run according to the SDK version which is written in your "global.json" file (for the Visual Studio Solution) or in the "project.json" file (for the project).
For example on my Windows 10, I have
By default my command is .NET Core 1.1 (the version if I run dotnet.exe located in C:\Program Files\dotnet) but if I want to run a Visual Studio Solution with 1.0 all I need to do is to write it in the global.json:
{
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With