Try using the full path both to the assembly itself and to the
assembly-path. E.g.,
                 <arg
value="/assembly-path:unittestingproject\bin\release"/>
                 <arg
value="unittestingproject\bin\release\tests.dll"/>

- Marc

Simone Chiaretta wrote:
> On 4/6/06, Simone Chiaretta <[EMAIL PROTECTED]> wrote:
> >
> > I'm trying to setup a CCNET installation and using MbUnit for UnitTesting.
> > But in the NAnt build file, when I call the MbUnit.Cons.exe program I get
> > an error due to the fact that it doesn't find the right assembly.:
> >
> > Here is the folder tree
> >
> > \root\
> >       \website
> >       \unittestingproject
> >              \bin
> >                   \relaase\tests.dll
> >
> > The Nant file is run from the root folder and I'm calling the mbunit
> > console specifying the assembly-path as unittestingproject\bin\release
> > and as file just tests.dll
> >
> >             <exec program="${MbUnit.exe}">
> >                 <arg
> > value="/assembly-path:unittestingproject\bin\release"/>
> >                 <arg value="/report-type:Xml"/>
> >                 <arg value="/report-folder:${CCNetArtifactDirectory}"/>
> >                 <arg value="tests.dll"/>
> >             </exec>
> >
> > I that case I get an error saying that  the file tests.dll cannot be
> > found.
> >
> > if I specify as file unittestingproject\bin\release\tests.dll I get errors
> > because then all referenced assemblies cannot be found.
> >
> > I got it working (well... not really, but at least I skipped this error
> > :-)) setting the workingdir of the exec Nant task to the
> > unittestingproject\bin\release folder....
> >
> > Is that a bug or am I doing something wrong?
> >
> > Simone
> >
> > PS: when it loads the programs output all parameters, and the
> > assembly-path has been set correctly
> >
> > --
> > Simone Chiaretta
> > www.piyosailing.com/S
> > Any sufficiently advanced technology is indistinguishable from magic
> > "Life is short, play hard"
> >
>
>
>
> --
> Simone Chiaretta
> www.piyosailing.com/S
> Any sufficiently advanced technology is indistinguishable from magic
> "Life is short, play hard"
>
> ------=_Part_18923_14496192.1144336079244
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 3140
>
> <br><br><div><span class="gmail_quote">On 4/6/06, <b 
> class="gmail_sendername">Simone Chiaretta</b> <<a href="mailto:[EMAIL 
> PROTECTED]">[EMAIL PROTECTED]</a>> wrote:</span><blockquote 
> class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 
> 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> <div style="direction: ltr;">I'm trying to setup a CCNET installation and 
> using MbUnit for UnitTesting.<br>But in the NAnt build file, when I call the 
> MbUnit.Cons.exe program I get an error due to the fact that it doesn't find 
> the right assembly.:
> <br>
> <br>Here is the folder tree<br><br>\root\<br>      \website<br>      
> \unittestingproject<br>             \bin<br>                  
> \relaase\tests.dll<br><br>The Nant file is run from the root folder and I'm 
> calling the mbunit console specifying the assembly-path as 
> unittestingproject\bin\release
> <br>and as file just tests.dll<br><br>            <exec 
> program="${MbUnit.exe}"><br>                <arg 
> value="/assembly-path:unittestingproject\bin\release"/><br>                
> <arg value="/report-type:Xml"/>
> <br>                <arg 
> value="/report-folder:${CCNetArtifactDirectory}"/><br>                <arg 
> value="tests.dll"/><br>            </exec><br clear="all"><br>I that case I 
> get an error saying that  the file
> tests.dll cannot be found.<br><br>if I specify as file 
> unittestingproject\bin\release\tests.dll I get errors because then all 
> referenced assemblies cannot be found.<br><br>I got it working (well... not 
> really, but at least I skipped this error :-)) setting the workingdir of the 
> exec Nant task to the unittestingproject\bin\release folder....
> <br><br>Is that a bug or am I doing something wrong?<br><br>Simone<br><br>PS: 
> when it loads the programs output all parameters, and the assembly-path has 
> been set correctly<br></div><div style="direction: ltr;"><span class="sg">
> <br>-- <br>Simone Chiaretta<br><a href="http://www.piyosailing.com/S"; 
> target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
> www.piyosailing.com/S</a><br>Any sufficiently advanced technology is 
> indistinguishable from magic<br>"Life is short, play hard"
>
> </span></div></blockquote></div><br><br clear="all"><br>-- <br>Simone 
> Chiaretta<br><a 
> href="http://www.piyosailing.com/S";>www.piyosailing.com/S</a><br>Any 
> sufficiently advanced technology is indistinguishable from magic<br>
> "Life is short, play hard"
> 
> ------=_Part_18923_14496192.1144336079244--

om/S" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
> www.piyosailing.com/S</a><br>Any sufficiently advanced technology is 
> indistinguishable from magic<br>&quot;Life is short, play hard&quot;
>
> </span></div></blockquote></div><br><br clear="all"><br>-- <br>Simone 
> Chiaretta<br><a 
> href="http://www.piyosailing.com/S";>www.piyosailing.com/S</a><br>Any 
> sufficiently advanced technology is indistinguishable from magic<br>
> &quot;Life is short, play hard&quot;
> 
> ------=_Part_18923_14496192.1144336079244--


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/MbUnitUser
-~----------~----~----~----~------~----~------~--~---

Reply via email to