views:

28

answers:

1

Hi,

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.ByteCode.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.

A: 

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.

Juri
Absolutely correct. In the end it turned out to be another project causing the confusion - thought I had a hard reference to my other project, whereas it was using Spring to inject the implementation and so had a soft reference. DOH
jamiebarrow