.NET Core 2.0 missing from my Visual Studio

前端 未结 6 1762
栀梦
栀梦 2020-12-11 15:05

So I\'ve installed the official .NET Core 2.0 SDK and when I\'m in Visual Studio i get heaps of errors and the target framework is not listed :(

It\'s like .NET Cor

相关标签:
6条回答
  • 2020-12-11 15:13

    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.

    0 讨论(0)
  • 2020-12-11 15:14

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

    0 讨论(0)
  • 2020-12-11 15:14

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

    0 讨论(0)
  • 2020-12-11 15:19

    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.

    0 讨论(0)
  • 2020-12-11 15:24

    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 :)

    0 讨论(0)
  • 2020-12-11 15:25

    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.

    0 讨论(0)
提交回复
热议问题