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

后端 未结 7 1132
太阳男子
太阳男子 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:47

    I ran into the same thing with .net 4.71. In my case, I simply migrated from packages.config to "package references" per

    Migrate from packages.config to PackageReference

    ... and it fixed my issue. For me, I was going to do this anyway, so if you're going this way already, I'd just skip the above and migrate to package references.

    0 讨论(0)
提交回复
热议问题