The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.3

前端 未结 14 2526
南旧
南旧 2020-12-13 05:07

I want to create a class library project with Target Framework .NET Standard 2.0.

I\'ve updated my Visual Studio 2017 to Version 15.3 and

14条回答
  •  借酒劲吻你
    2020-12-13 05:50

    It sounds like installing the VS2017 update for that specific version didn't also install the .NET Core 2.0 SDK. You can download that here.

    To check which version of the SDK you've already got installed, run

    dotnet --info
    

    from the command line. Note that if there's a global.json file in either your current working directory or any ancestor directory, that will override which version of the SDK is run. (That's useful if you want to enforce a particular version for a project, for example.)

    Judging by comments, some versions of VS2017 updates do install the .NET Core SDK. I suspect it may vary somewhat over time.

提交回复
热议问题