I am using Vusual Studio 2008 SP1. I need some dlls for my unit tests. I' ve created test project and tried to add dlls to folder "TestResources" that I've created in the project. During files adding Visual Studio opened Output window and showed messages like
Error loading xxx.dll: Unable to load the test container 'xxx.dll' or one of its dependencies. Error details:
System.IO.FileNotFoundException: Could not load file or assembly 'xxx' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'xxx' or one of its dependencies. The system cannot find the file specified.
When I was trying to add next folder with dlls Visual Studio crashed.
When I create class library project and add the same files to TestResources folder everything is fine. VS add dlls to directiry just like common files.
Does anybody know how to avoid reflection loading dll in test project?