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

前端 未结 14 2572
南旧
南旧 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:58

    I just went through this trouble. In my case I had a working script

    SET devenvPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
    "%devenvPath%" mySolution.sln /Rebuild "DebugWithUT|AnyCpu" /Out mySolution.Build.log
    

    Today I started getting this exact error. But now I remember installing VS2019 day before. Looks like it changed something for VS2017. I went to VS2017 Update, installed latest version/update and it fixed it back.

提交回复
热议问题