Hi Gert, I figured this out with the help of this blog: http://blogs.msdn.com/jaybaz_ms/archive/2004/05/02/124754.aspx and reading the FM: file:///C:/tools/Nant/doc/help/tasks/csc.html <relevant.snippet> noconfig Instructs the compiler not to use implicit references to assemblies. The default is false. </relevant.snippet>
So, by adding a noconfig="true" to my <csc> task everything works as expected. Thanks michael > -----Original Message----- > From: Gert Driesen [mailto:[EMAIL PROTECTED] > Sent: Monday, September 13, 2004 3:49 PM > To: Michael Joseph; [EMAIL PROTECTED] > Subject: Re: [Nant-users] VS.NET build works, Nant <solution> > build fails with error CS0234 > > Michael, > > If you package up a repro for this, I'd be glad to take a > look at it ... > > Gert > > ----- Original Message ----- > From: "Michael Joseph" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 13, 2004 3:01 PM > Subject: [Nant-users] VS.NET build works, Nant <solution> > build fails with error CS0234 > > > Hi All, > > This isn't strictly a NAnt issue, but I'm hoping that someone in the > community could shed some light on my problem: > > I have an existing ASP.NET project that I'm trying to develop a NAnt > build for. I've tried using both Gordon Weakliem's XSLT > (http://radio.weblogs.com/0106046/stories/2002/08/10/supportin > gVsnetAndN > ant.html) and the <solution> task with the same result: > > [compile] Some\Path\To\MyCode.aspx.cs(578,18): error CS0234: > The type or > namespace name 'ResolveString' does not exist in the class or > namespace > 'Util' (are you missing an assembly reference?) > > The code in question looks as follows: > > using MyLibrary.Util; > ... > using ThisApplication.Sys; > ... > > namespace Some.Path.To.MyCode > { > ... > // here I want to access the Util class in ThisApplication.Sys, > not MyLibrary.Util > ProductID = new Key( Util.ResolveInt( row["ProductID"]) ); > // if I change to the arguably more correct code below, the > problem goes away. > //ProductID = new Key( ThisApplication.Sys.Util.ResolveInt( > row["ProductID"]) ); > ... > } > > So, I think I understand what the compiler is complaining about- an > ambigious reference to the Util class. However I would like > to generate > the NAnt build without changing the code (there are -lots- of > ambigious > references) and am struggling to understand why this code builds > correctly in VS.NET 2003 and not from NAnt (considering that NAnt is > merely invoking csc.exe) . > As a final clue that this is in fact errant/undocumented/magic VS.NET > behaviour- if I save the Nant generated call to csc.exe and execute it > from the command line- I (unsurprisingly) get the same error. > > Any leads would be greatly appreciated. > > Thanks > michael > > This email is sent subject to a disclaimer available at > http://www.jamwarehouse.com/about_us/EmailDisclaimer/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your > judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > > ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users