To be clear, you're going to have to use asis="true". The question is whether csc.exe will automatically know where to find Microsoft.VisualBasic.dll even though the command line will not have any path specified. That's what I mean by "treated as a framework dll". If csc.exe is not automatically finding it, then you're only option is to specify the full path to the file (either the c:\windows\Microsoft.Net\Framework\vxxxxx\ path or make a local copy of the files and specify the path to the local copies).
-----Original Message----- From: Jesper Rasmussen [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 6:52 AM To: Erv Walter Cc: [EMAIL PROTECTED] Subject: Re: [Nant-users] problem with references and standard libs Ah!. Thanks. heh i read "asis" hmm I don't know that word.... ah! As IS :) Ok i just tested, and the mentioned dll's is not treated as framework dll's and hench is not added to the reference path, except when i set asis to true. So i have resoted to copy th files manually. However should thouse not be considered frameworkfiles? Yes i was trying to use to references sections in my 2nd mail. and first was to different aproaches - just to clear up misunderstandings :) Is multiple references sections a feature that is considered for implementation? cheers Jesper Erv Walter wrote: > Normally (this is not specific to the references fileset) when you > include a file in a fileset, Nant will try to locate that file and > verify that it exists. Normally, if the files does not exist in the > relative or absolute path specified, Nant will remove that file from > the fileset when it's actually used in the command. Since the > framework dlls (system.dll, system.xml.dll, etc) are not in the local > directory, if you just <include name="system.dll"/> then nant will > quietly remove that reference from the list. Asis="true" tells nant > to just pass the filename to the command without trying to confirm it's existance. > > Coming back to your specific problem, it's not clear to me what the > problem is. I would recommend running nant with verbose output (-v) > and checking that the csc.exe command line looks correct. If it is > correct, then it is possible that Microsoft.VisualBasic.dll and > Microsoft.VisualBasic.Vsa.dll are not considered framework dlls. If > this is the case, you may need to copy them to a local path. I have > never used these assemblies, so I'm not sure on the proper approach. > > -----Original Message----- > From: Jesper Rasmussen [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 8:05 AM > To: Erv Walter > Subject: Re: [Nant-users] problem with references and standard libs > > Hey Thanks for yourr reply > > asis???? what is that?? > > anyway doesnt work.. still gets: > > error CS0234: The type or namespace name 'Vsa' does not exist in the > class or namespace 'Microsoft.VisualBasic' (are you missing an > assembly > reference?) > > and my build looks like this: > > <target name="build"> > > <csc target="library" output="${lib.dir}/${name}"> > > <references basedir="${lib.dir}"> > <includes name="log4net.dll"/> > </references> > > <references> > <includes asis="true" > name="Microsoft.VisualBasic.Vsa.dll"/> > <includes asis="true" > name="Microsoft.VisualBasic.dll"/> > </references> > > <sources basedir="."> > <includes name="*.cs"/> > </sources> > </csc> > </target> > > but if i copy the dll's to the ${lib.dir} and move the two includes > lines to that references section it works. > > btw im using 1.0 framework and nant 0.8.3 > > cheers > Jesper > > > Erv Walter wrote: > > >>You probably don't ever want frompath="true" for a reference fileset. >>Try asis="true" instead for framework assemblies. >> >>-----Original Message----- >>From: Jesper Rasmussen [mailto:[EMAIL PROTECTED] >>Sent: Thursday, August 07, 2003 4:14 AM >>To: [EMAIL PROTECTED] >>Subject: [Nant-users] problem with references and standard libs >> >>Hiya >>I have been searching here and there to find an answer, but even >>though > > >>this seems like a RTFM question, i cant find it in the FM :) >> >>From my csc target i need to reference Microsoft.Vsa.dll among others. >> >>I have tried: >> <references >>basedir="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\"> >> <includes frompath="true" >>name="Microsoft.VisualBasic.Vsa.dll"/> >> <includes frompath="true" name="Microsoft.Vsa.dll"/> >> </references> >> >>and >> >> <references> >> <includes frompath="true" >>name="Microsoft.VisualBasic.Vsa.dll"/> >> <includes frompath="true" name="Microsoft.Vsa.dll"/> >> </references> >> >>witn no success. >> >>Any hints? >> >>cheers >>Jesper >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: Free pre-built ASP.NET sites including >>Data Reports, E-commerce, Portals, and Forums are available now. >>Download today and enter to win an XBOX or Visual Studio .NET. >>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_ >>0 >>1 >>/01 >>_______________________________________________ >>Nant-users mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/nant-users >> >> > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_ > 01/01 _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users