Unit Test passes in Visual Studio but fails on the command line (cant find Castle.Core)
I have a weird issue. My unit test passes in the IDE but fails in the command line (usually I'd expect it the other way around).
I'm using Visual Studio Team System 2008, and .net 3.5.
I have a 'soft' dependency in my project on NHibernate (NHibernate.ByteCode.Castle.dll) and on Castle (Castle.DynamicProxy2.dll).
I've setup the testrunconfig file to add these DLLs as additional files to deploy under the Deployment tab.
In the IDE the test runs normally, but in the command line I get the error:
Warning: Test Run deployment issue: The assembly or module 'Castle.Core' directly or indirectly referenced by deployment item 'Dependencies\NHibernate.By开发者_JS百科teCode.Castle.dll' specified by the test run configuration was not found.
I have no idea how to solve this, any help would be greatly appreciated.
No chance that you have either not copied it correctly (or forgot something to copy) to the deployment directory or not in the right place (folder, subfolder) when you run it from your command line? Sounds like such an issue, also because the IDE most probably does this job implicitly.
精彩评论