Visual studio 2017 Update 3 - The SDK 'Microsoft.NET.Sdk.Web' specified could not be found

前端 未结 14 962
暖寄归人
暖寄归人 2020-12-13 07:06

Error:

C:\\WebApp\\WebApp.csproj : error : The SDK \'Microsoft.NET.Sdk.Web\' specified could not be found. C:\\WebApp\\WebApp.csproj

相关标签:
14条回答
  • 2020-12-13 07:33

    I agree with the comment on Sundeep's answer, you shouldn't have a global.json file in your project anymore.

    It seems as though installing the .NET Core 2.0 SDK is causing issues with the PATH. Verify that C:\Program Files\dotnet and C:\Program Files (x86)\dotnet are in the PATH environment variable. In my case, these values were already present under System Variables so I added them to User Variables and rebooted my machine. This resolved my issue.

    0 讨论(0)
  • 2020-12-13 07:34

    Install the proper SDK version and go to below links

    https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-3.1.403-windows-x64-installer https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.9-windows-x64-installer

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