PartCover 4.0 Only Reports NUnit Libraries

☆樱花仙子☆ 提交于 2019-12-05 16:36:46

I had this problem yesterday and, searching for the answer, came across this unanswered question. Now that I've found the answer, at least for me, I thought I'd come and leave help for the next person to do the same.

It turned out to be as simple as NUnit-console.exe being configured to support .NET 2.0 rather than .NET 4.0. You can see this in a "Runtime Environment" section of the PartCover output.

In each of the config files in NUnit's bin\net-2.0 folder, add this section directly below the configuration tag

<startup>
  <requiredRuntime version="v4.0.20506" />
</startup>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!