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

前端 未结 14 1007
暖寄归人
暖寄归人 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.

提交回复
热议问题