The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a .NET SDK that supports .NET Core 2.1

后端 未结 15 2465
攒了一身酷
攒了一身酷 2020-12-13 23:13

have tried upgrading to the professional version of visual studio 2017 v 15.6.0 (Preview 7.0)

and installed aspnetcore-runtime-2.1.0-preview1-final-win-x64 and .net

15条回答
  •  天涯浪人
    2020-12-13 23:43

    I resolved the problem. the cause was that i installed

    • aspnetcore-runtime-2.1.0-preview1-final-win-x64 and
    • .net core SDK 2.1.4-x64 versions.
    • The installation placed the sdk files in c:\Program Files\dotnet
    • but VS2017 32bit was looking for the sdk files in c:\Program Files(x86)\dotnet.

    To resolve this i

    • installed the x86 version of the sdk and aspnetcore runtime,

    • set the MSBuildSDKsPath environmental variable to point to the new installation path.

    • deleted all obsolete sdks from control panel

    The question VS2017 Update 3 'Microsoft.NET.Sdk.Web' could not be found helped in resolving this issue.

提交回复
热议问题