Your project does not reference “.NETFramework,Version=v4.6.2” framework. Add a reference to “.NETFramework,Version=v4.6.2” in the “TargetFrameworks”

后端 未结 7 1279
太阳男子
太阳男子 2020-12-24 00:20

I can\'t run my unit tests.

I have the next error:

Your project does not reference \".NETFramework,Version=v4.6.2\" framework. Add a referen

7条回答
  •  太阳男子
    2020-12-24 00:31

    That happened to me when opening a VS2015 project in VS2017. Deleting the project.assets.json from the obj folder did the trick.

    Anyway, the Framework from the message was missing in the file, I did not add it there though, went with deleting it.

提交回复
热议问题