> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nant-users- > [EMAIL PROTECTED] On Behalf Of Andrew Cheung > Sent: maandag 22 januari 2007 23:22 > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] different namespaces, same output dll > > Hi. I have a few .vb files which are set to different name spaces, but > these .vb files need to be compiled into one single dll. How do I do > that using the vbc task? > > Any help is appreciated. Below is an illustration of what I mean. > > -Andrew > > ------------------------------ > > for example : > > For file a.vb : > > Namespace com.test.moduleA > Public Class A > ... > End Class > End Namespace > > > For file b.vb : > > Namespace com.test.moduleB > Public Class B > ... > End Class > End Namespace > > > > For file c.vb : > > Namespace com.test.moduleC > Public Class C > ... > End Class > End Namespace > > These files all belong to one project, and I want to compile these > files to produce a single output, test.dll
If you're ok with these classes ending up in a single module (and a single assembly), then just use something like this: <vbc target="exe" output="test.dll"> <imports> <import namespace="System" /> <import namespace="System.Data" /> </imports> <sources> <include name="**/*.vb" /> </sources> <references> <include name="System.dll" /> <include name="System.Data.dll" /> </references> </vbc> Let me know if I'm missing part of your question. Gert ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users