NUnit "could not load file or assemby 'MyTestProject'

前端 未结 4 1397
别那么骄傲
别那么骄傲 2021-01-03 18:29

I\'m setting up a new 64 bit machine to run as a build server. When I try to load my NUnit test assembly into NUnit GUI I get the following error.

There is nothing

相关标签:
4条回答
  • 2021-01-03 19:13

    If you do need to build the test project for x86, you can use nunit-x86.

    See "NUnit on 64-Bit Platforms" at http://www.nunit.org/index.php?p=nunit-gui&r=2.4.2.

    0 讨论(0)
  • 2021-01-03 19:15

    Activate the Fusion log with fuslogvw.exe (Run as Administrator from the Visual Studio Command Prompt) to see what the assembly loader tries to load and all occurring errors.

    0 讨论(0)
  • 2021-01-03 19:17

    The solution was to build the test project for "AnyCPU" instead of 32-bit. I can work around the restriction that made us use 32 bit.

    Thank you David and Joe90 for the suggestions. I've certainly learned a couple of new things. fuslogvw.exe is awesome, I didn't previously know it existed.

    0 讨论(0)
  • 2021-01-03 19:26

    The solution was found following this post: "Could not load file or assembly 'X.dll' or one of its dependencies. The specified module could not be found." - on host server and more specifically by using http://dependencywalker.com/

    0 讨论(0)
提交回复
热议问题