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

后端 未结 7 1229
太阳男子
太阳男子 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-24 00:32

    I up-voted Larissa but I thought it might be helpful to know how I got into this. I added a .net standard project file to my build (we target lots of platforms) and it produced the debris found in the obj folder. When the android sanity build came around, it threw up on the obj folder. My solution was to clean that folder out as a pre-build step. This is a difficult problem because it was working just fine for years...needle meet haystack.

提交回复
热议问题