Here is an example pulled from ASP.NET script I built:
...
<!-- VS.NET handles some namespace imports automatically - we try to simulate that
here -->
<property name="default.imports"
value="System,System.Collections,System.Configuration,System.Data,System.Drawing,Microsoft.VisualBasic,System.Diagnostics,System.Web,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.HtmlControls"/>
<vbc target="library"
output="${build.dir}\MyASPNETApp.dll"
debug="${debug}"
optionstrict="true"
rootnamespace="MyASPNETApp"
imports="${default.imports}" <-- namespaces are imported here
>
<references>
<includes frompath="true" name="System.dll"/>
<includes frompath="true" name="System.Data.dll"/>
<includes frompath="true" name="System.Management.dll"/>
<includes frompath="true" name="System.Web.dll"/>
<includes frompath="true" name="System.Web.Services.dll"/>
<includes frompath="true" name="System.Windows.Forms.dll"/>
<includes frompath="true" name="System.XML.dll"/>
</references>
<sources basedir="${src.dir}">
<includes name="**/*.vb"/>
<excludes name="**/_vti_cnf/*" />
</sources>
</vbc>
-----Original Message-----
From: Rosemarie Leighton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 8:05 AM
To: NAnt Developers (E-mail)
Subject: [nant-dev] How do we include Imports
Importance: High
Hi
If anyone has any idea on how to import namespaces for the vbc compiler, please could
you let know.
Thanks
Rosemarie Leighton (Financial IQ)
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers