NUnit “missing” GPSVC.DLL on Windows 7/64

后端 未结 3 1174
南旧
南旧 2020-12-28 16:21

I recently upgraded from Vista/32 to Win7/64. On my old machine, everything was working fine.

Unfortunately, on my new machine NUnit won\'t load my unit tests, with

3条回答
  •  没有蜡笔的小新
    2020-12-28 16:36

    I hit the same problem today, luckily there is a very simple fix and a more complex one.

    The simple fix is to run nunit-console-x86.exe, instead of nunit-console.exe

    The difficult fix with a partial explanation is:

    What is happening is the nunit console runner is running in 64bit mode, which somehow stops it from loading your unit test dlls which are in 32 bit mode.

    The fix is made to the nunit console exe, you tell windows to force it to run in a 32 bit compatibility mode. This link shows you how to do it.

    NB, you will need to download a windows sdk as well to get the corflags.exe, remember to run the command from the SDK command prompt.

提交回复
热议问题