Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 03, 2012 04:26 PM by marcind
Mar 03, 2012 02:25 PM|LINK
when I try to run mspec test via ReSharper which executes this code:
I get the exception below. If I copy ReSharper dlls to the test folder (bin\Release) - everything works as expected. What would be the reason of the exception?
System.IO.FileNotFoundException: Could not load file or assembly 'JetBrains.ReSharper.Psi, Version=6.0.2202.688, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.
Mar 03, 2012 03:36 PM|LINK
This seems like something related to ReSharper, not Web API. You should try contacting JetBrains on their support forums.
Mar 03, 2012 04:06 PM|LINK
Why do you think it's ReSharper's issue? After all it's Web API that tries to do something on ReSharper's dlls. Just trying to understand.
Mar 03, 2012 04:26 PM|LINK
Not sure how ReSharper's test runner works but it looks like it's copying some binaries into your application's bin folder. Web API searches all bin assemblies for ApiController classes, and it looks like whatever got copied by ReSharper is unable to load
some other DLL. You should look at your test project and verify the purpose of the JetBrains.ReSharper.Psi assembly.