c# - Could not load file or assembly 'Assembly.dll' - vstest -
i have such error when launching 1 unit test: test method testname threw exception: system.io.filenotfoundexception: not load file or assembly 'assembly.dll' or 1 of dependencies. specified module not found.
this issue occurs when using vstest.console.exe. doesn't occur when run test through visual studio (2013). know vstest.executionengine.exe run when running tests through visual studio. logs can enabled in vstest.executionengine.exe.config file (but doesn't give me useful information).
i used dependency walker suggested in many other questions of these type:
, see have dlls colored red in system32 directory or in program execution directory (dependency walker thinks missing). execution of tests looks this:
"c:\program files (x86)\microsoft visual studio 12.0\common7\ide\commonextensions\microsoft\testwindow\vstest.console.exe" "dll1.dll" "dll2.dll" (etc. dlls tests) /inisolation /usevsixextensions:false /platform:x86 /framework:framework40 /logger:trx /tests:testname (and possible missing dlls, not api-ms-win(...) named dlls in testwindow or system32 directory). have checked. have microsoft visual c++ redistributable 2008, 2010, 2012 , 2013 installed in both x86 , x64 versions. name of missing dll , name of test changed, of course have names :)
after investigation: path variable 2 environments used. 1 directory wasn't in path environment variable , because of dll not found. adding key directory path variable solved problem. environment incomplete path variable jenkins.
Comments
Post a Comment