Re: Problem with multiple Assemblies

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <004f01c882c3$1bb799b0$6401a8c0@ferrari>
It's simply a "feature" of .NET that all assemblies that are loaded
together must be located under a common application base.

When the console runner receives multiple assemblies on the command
line, it runs them separately - that is, in separate AppDomains.

The gui runner does not currently accept multiple assemblies on the
command line, but you can load them through a project or by adding
additional assemblies from the menu. In this case, they are loaded
in a single AppDomain by default, although you can set an option
to cause NUnit to load them into separate AppDomains.

Charlie 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Christian Fröbel
> Sent: Monday, March 10, 2008 1:29 AM
> To: [email protected]
> Subject: Re: [Nunit-users] Problem with multiple Assemblies
> 
> Hi Charlie,
> 
> > [...]
> > Save your project in some directory, which is a common ancestor to 
> > both assemblies directories. If that's not possible or 
> desirable, you 
> > may be able to run the assemblies using a separate AppDomains.
> > This may require manually editing the nunit file, if you get errors 
> > from NUnit when trying to add an assembly.
> >
> >   
> 
> that was the problem. I now saved the project in a common 
> ancestor directory, and then it worked. -- But why is that? 
> And why does nunit-console not have this strange restriction?
> 
> Thanks,
>   Christian
> 
> > [...]
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft Defy all 
> challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.