.NET Core 2.0 missing from my Visual Studio

偶尔善良 提交于 2019-11-28 13:16:31

Please make sure you use Visual Studio 2017 Update 3 (version 15.3, 26730.01): Help -> About Microsoft Visual Studio

Ah!

I had the following global.json in the root of my solution:

{
  "projects": [ "src", "tests" ],
  "sdk": {
    "version": "1.0.4"
  }
}

So I had to change the version from 1.0.4 to 2.0.0 and then close/re-open the solution.

Problem solved :)

In my case this was caused by another executable called "dotnet.exe" that was in my path before the one from the SDK. It seems that VS doesn't deal with this well.

You may need to add "%USERPROFILE%\.dotnet\" to your PATH. The Entity Framework Core project mentions it.

For using .net core 2 or higher, you need visual studio 15.3 version or higher,update your visual studio and then, you need to install SDK.

I just ran into this issue. Reinstalling the sdk and VS didn't help. The issue ended up being an incorrect order of paths in the System Path variable. As soon as I moved C:\Program Files\dotnet\ before C:\Program Files (x86)\dotnet\ VS was able to pickup the correct sdks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!