How do I run PartCover in x64 windows

泄露秘密 提交于 2019-12-01 03:06:48

The problem is caused by PartCover trying to load a 32 bit dll when it is running under the 64-bit .NET VM.

The trick is to force PartCover to run in the 32 bit VM. In order to do this you have to use a tool called CorFlags.exe to modify the exe and flag it as 32 bit. This is equivalent to it having been built with x86 as its target.

CorFlags (on my machine) is in Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\

To set the 32-bit flag run:

CorFlags.exe PartCover.exe /32BIT+ /Force

I also found that I had to do the same for the program being run (in my case the Gallio test runner)

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