Fyi, mail.sf.net doesn't like .zip attachments. > -----Original Message----- > From: Michael Joseph > Sent: Friday, September 17, 2004 11:53 AM > To: 'Gert Driesen'; [EMAIL PROTECTED] > Subject: RE: [Nant-users] VS.NET build works, Nant <solution> > build fails with error CS0234 [SOLVED] > > The problem is the Util class- if I change this to Foobar, > then the build works without the /noconfig switch. Csc.rsp > contains the following "common libraries" which are only > silently added as references if you use the command line: > > /r:Accessibility.dll > /r:Microsoft.Vsa.dll > /r:System.Configuration.Install.dll > /r:System.Data.dll > /r:System.Design.dll > /r:System.DirectoryServices.dll > /r:System.dll > /r:System.Drawing.Design.dll > /r:System.Drawing.dll > /r:System.EnterpriseServices.dll > /r:System.Management.dll > /r:System.Messaging.dll > /r:System.Runtime.Remoting.dll > /r:System.Runtime.Serialization.Formatters.Soap.dll > /r:System.Security.dll > /r:System.ServiceProcess.dll > /r:System.Web.dll > /r:System.Web.Mobile.dll > /r:System.Web.RegularExpressions.dll > /r:System.Web.Services.dll > /r:System.Windows.Forms.Dll > /r:System.XML.dll > > And inside one of these is a Util class that borks my build > because I now have an ambiguous reference. > > Attached are the broken and working test cases- the only > changes between them is the name of the class. > > Thanks > michael > > > -----Original Message----- > > From: Gert Driesen [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 17, 2004 11:28 AM > > To: Michael Joseph; [EMAIL PROTECTED] > > Subject: Re: [Nant-users] VS.NET build works, Nant <solution> build > > fails with error CS0234 [SOLVED] > > > > Hi Michael, > > > > Glad you got it working, but I don't quite understand how > > noconfig="true" > > can resolve the issue you ran into ... > > > > Could you send me a repro for this anyway, as I'd like to > understand > > what's happening there ... > > > > Gert > > ----- Original Message ----- > > From: "Michael Joseph" <[EMAIL PROTECTED]> > > To: "Gert Driesen" <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > Sent: Friday, September 17, 2004 11:16 AM > > Subject: RE: [Nant-users] VS.NET build works, Nant <solution> build > > fails with error CS0234 [SOLVED] > > > > > > 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