Here is my nant build file. The build file is in the same directory as the
proj file. I do not specify any other command line attrbutes. Just nant.
Thanks.
<?xml version="1.0"?>
<project name="ZZZ" default="cleanbuild" basedir=".">
<description>Build Project</description>
<!-- Specific Properties-->
<property name="project.name" value="ZZZ"/>
<property name="rootNamespace" value="ABCD"/>
<property name="output.target" value="library"/>
<property name="output.path" value="bin"/>
<property name="output.type" value="dll"/>
<property name="debug.value" value="true"/>
<property name="optionexplicit.value" value="true"/>
<!-- Namespaces to Import -->
<namespaceimports id="system.imports">
<import namespace = "Microsoft.VisualBasic" />
<import namespace = "System" />
<import namespace = "System.Collections" />
<import namespace = "System.Configuration" />
<import namespace = "System.Data" />
<import namespace = "System.Drawing" />
<import namespace = "System.Web" />
<import namespace = "System.Web.UI" />
<import namespace = "System.Web.UI.HtmlControls" />
<import namespace = "System.Web.UI.WebControls" />
</namespaceimports>
<!-- References -->
<assemblyfileset id="system.assemblies">
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="System.Drawing.dll" />
<include name="System.Web.dll" />
<include name="System.XML.dll" />
<!-- All my other project references [open proj file in notepad]; class
libraries compiled as dll -->
</assemblyfileset>
<target name="clean">
<delete file="${output.path}\${project.name}.${output.type}"
failonerror="false" />
</target>
<target name="build" description="compiles the source code">
<vbc target="${output.target}"
output="${output.path}\${project.name}.${output.type}"
rootnamespace="${rootNamespace}" debug="${debug.value}"
optionexplicit="${optionexplicit.value}" >
<imports refid="system.imports" />
<sources>
<include name="*.vb" />
</sources>
<resources prefix="${rootNamespace}" dynamicprefix="true">
<include name="*.aspx" />
<include name="*.resx" />
<include name="*.asax" />
</resources>
<references refid="system.assemblies" />
</vbc>
</target>
<target name="cleanbuild" depends="clean, build" />
</project>
From: Gary Feldman <[EMAIL PROTECTED]>
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] error BC30002: Type not defined
Date: Mon, 30 Jan 2006 12:40:35 -0500
Narayanan Raghavan wrote:
While trying to build my project, I get this error
error BC30002: Type 'XYZ.Objects.Common.Cache' is not defined
THe line number this error points to is basically declaring an object of
this class. [This is a class library that I wrote.]
I opened my proj file in notepad (there is a lot useful info here) and
added all the references to my build file but this error is persistent.
How are your building it?
Gary
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users