Ramppy Dumppy
Ramppy Dumppy

Reputation: 2817

.net core 1.1 upgrade issue

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

Upvotes: 3

Views: 1478

Answers (1)

Guillaume S.
Guillaume S.

Reputation: 1545

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

  • .NET Core 1.0 installed in C:\Program Files\dotnet\sdk\1.0.0-preview2-003131
  • .NET Core 1.1 installed in C:\Program Files\dotnet\sdk\1.0.0-preview2-1-003177

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"
  }
}

Upvotes: 3

Related Questions