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

后端 未结 7 1130
太阳男子
太阳男子 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.

提交回复
热议问题