Hello,
I am a newbie to nant. I am trying to write a build file for a simple VB.NET web app. When I run nant, the corresponding resource and pdb files are not being generated. I also get the error message "[vbc] vbc : error BC30037: Project-level conditional compilation constant 'DEBUG;TRACE' is not valid: Character is not valid."

Please help.
My build file is below:



<?xml version="1.0"?>
   <project name="GRD" default="rebuild" basedir=".">
       <description>The Hello World of build files.</description>

       <namespaceimports id="system.imports">
                        <import namespace="System" />
                        <import namespace="System.Data" />
                        <import namespace="System.Drawing" />
                        <import namespace="System.Web" />
                        <import namespace="System.XML" />
                </namespaceimports>

                <assemblyfileset id="sys.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" />
                </assemblyfileset>

                <target name="clean">
                        <delete file="GRD.dll" failonerror="false" />
                </target>

       <target name="build" description="compiles the source code">
<vbc target="library" output="GRD.dll" rootnamespace="Test" debug="true" define="DEBUG;TRACE">
                                <imports refid="system.imports" />
               <sources>
                                        <include name="*.vb" />
               </sources>
               <resources prefix="Test" dynamicprefix="false">
                   <include name="*.aspx" />
                   <include name="*.aspx.vb" />
                                        <include name="*.aspx.resx" />
                                        <include name="*.asax" />
                                        <include name="*.asax.vb" />
                                        <include name="*.asax.resx" />
                                </resources>
               <references refid="sys.assemblies" />
           </vbc>
       </target>

       <target name="rebuild" depends="clean, build" />

   </project>




-------------------------------------------------------
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

Reply via email to