Has the fork option been removed from the latest nunit2 task? I've used this with the 20021223 snapshot:
<nunit2 basedir="${nant.project.basedir}"> <test assemblyname="${nant.project.basedir}/${build.dir}/${component-filename}" type="Plain" fork="true"/> </nunit2> Darren -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott Hernandez Sent: 17 January 2003 00:49 To: Sansone, Aaron; [EMAIL PROTECTED] Subject: Re: [nant-dev] NUnit Error With NAnt... We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) ----- Original Message ----- From: "Sansone, Aaron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... > All, > > I have the latest snapshot (1/14) of NAnt and I am trying to create a test build > script. Apparently the NUnit2 Testing task is looking for my Assembly in the > NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin > directory, my test tasks are run. However, I don't belive that this is the > intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to > look as a specific directory for my assembly? Here are my relevant build file > entries. Notice that I am specifying the absolute path for the assembly. I've > tried several permutations of the assembly location, but only when I placed it > in the NAnt/bin directory did I have any success. > > Properties: > > <property name="project.basedir" value="C:/Projects/SpikeSolution"/> > <property name="build.dir" value="build"/> > <property name="project.ClientExe.name" value="SpikeWinClient"/> > > NAnt Task: > > <nunit2 basedir="${project.basedir}\${build.dir}"> > <test > assemblyname="${project.basedir}\${build.dir}\${project.ClientExe.name}.exe" /> > </nunit2> > > When I execute the script, I get the following Error: > > INTERNAL ERROR > System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of > its dependencies, was not found. > File name: "SpikeWinClient" > at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B > oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass > embly locationHint, StackCrawlMark& stackMark) > at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean > stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) > at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as > semblySecurity, StackCrawlMark& stackMark) > at System.AppDomain.Load(String assemblyString) > at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) > at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis > tener listener) > at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() > at SourceForge.NAnt.Task.Execute() > at SourceForge.NAnt.Target.Execute() > at SourceForge.NAnt.Project.Execute(String targetName) > at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() > at SourceForge.NAnt.Task.Execute() > at SourceForge.NAnt.Target.Execute() > at SourceForge.NAnt.Project.Execute(String targetName) > at SourceForge.NAnt.Project.Execute() > at SourceForge.NAnt.Project.Run() > > Fusion log follows: > === Pre-bind state information === > LOG: DisplayName = SpikeWinClient > (Partial) > LOG: Appbase = C:\NAnt\bin\ > LOG: Initial PrivatePath = NULL > Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT > oken=96d09a1eb7f44a77. > === > > LOG: Policy not being applied to reference at this time (private, custom, partia > l, or location-based assembly bind). > LOG: Post-policy reference: SpikeWinClient > LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. > LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC > lient.DLL. > LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.EXE. > LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC > lient.EXE. > > Please send bug report to [EMAIL PROTECTED] > > > Thanks, > > Aaron ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers