Hi Aleksander, this is basically off topic since Assembly resolving is generally part of .Net itself and not specific to nant.
Nevertheless, you could do following: add a <probing> entry to your app.config eg. <probing privatePath="lib\ShouldFluent;lib\AnotherLib" /> or try following in your code (untested): AppDomain.CurrentDomain.SetupInformation.PrivateBinPath = @"lib\ShouldFluent;lib\AnotherLib"; IMHO both folders must reside below AppPath. To get an insight what is happening you might take a look at fuslogvw.exe which is a log viewer for fusion (.net assembly resolver) fuslogvw.exe should be somewhere in your sdk\bin folder hth Dominik Am 21.06.2011 07:29, schrieb Heintz, Aleksander: > That works, but I would like to be able to maintain some hierarchy of > the files. Isn't that possible? > > On Tue, Jun 21, 2011 at 1:28 AM, Christopher Brandt > <xtopher.bra...@gmail.com <mailto:xtopher.bra...@gmail.com>> wrote: > > Have you tried moving all of the dependencies (ie, > Should.Fluent.dll ) into the same directory as the executable? > --- > Chris. > > Continuous improvement is better than delayed perfection. - Mark Twain > > > On Mon, Jun 20, 2011 at 12:13 PM, Heintz, Aleksander > <alxa...@alxandr.me <mailto:alxa...@alxandr.me>> wrote: > > I'm having trouble by trying to write a buildfile that can > compile and test my application. The compilation works great, > however, I get a runtime-error during the testing saying that > .NET is unable to load the assembly I included. Now, my > folder-structure looks something like this: > > /project.build > /lib > /ShouldFluent > /Should.Fluent.dll > /src > /sources... > -- The answer to the great question of life, the universe and everything is 42 (Douglas Adams) ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users