(I am unable to mail from my company server for some reason. id=curtiszarger [EMAIL
PROTECTED] Please post.)
THX Gert for the previous reply, it helped a lot. I�m much closer, but still having a
problem and a few questions remain.
Below is the current form of my build file, with Gert�s suggestions applied.
Documentation clarification:
- One of my original problems was a misinterpretation of �frompath� as a
recursive feature relative to basedir. I did not understand its true capability, that
of using the system PATH environment variable.
- I incorporated the �dynamicprefix� and �prefix� attributes into the resources
tag and they seem to help. However I am unclear from the documentation as to what
they do.
Question:
- The references tag includes basedir, which points to the project root path.
How are the System.* dll�s being found, as they are in the .Net framework folder?
Issue:
- The compile still fails, citing a number of undeclared names (IsDBNull,
InStr, ��) which are part of Microsoft.VisualBasic namespace. My question is how do I
properly reference Microsoft.VisualBasic? I tried adding it to the <vbc> tag with the
import=�Microsoft.VisualBasic� attribute. I have also included it as a reference as
shown below. Neither method worked.
=======================================================================
<?xml version="1.0"?>
<project name="WebApplication.build" default="build">
<property name="debug" value="true" />
<property name="build.dir" value="bin" />
<property name="build.fullpath" value="${build.rootpath}\${build.dir}\" />
<target name="build">
<mkdir dir="${build.fullpath}" />
<vbc optioncompare="text" optionexplicit="true" optionstrict="false"
removeintchecks="true" rootnamespace="${basename}"
output="${build.fullpath}${basename}.dll" target="library" debug="${debug}">
<references basedir="${build.rootpath}\" failonempty="false" >
<includes asis="true" name="System.dll" />
<includes asis="true" name="System.Data.dll" />
<includes asis="true" name="System.Drawing.dll" />
<includes asis="true" name="System.Web.dll" />
<includes asis="true" name="System.XML.dll" />
<includes asis="true" name="Microsoft.VisualBasic.dll" />
<includes name="**/*.dll" />
</references>
<sources basedir="${build.rootpath}\" failonempty="true" >
<includes name="**/*.vb" />
</sources>
<resources basedir="${build.rootpath}" failonempty="true"
dynamicprefix="true" prefix="${basename}" >
<includes name="**/*.resx" />
</resources>
</vbc>
</target>
</project>
========================================================================
From: "Gert Driesen" <[EMAIL PROTECTED]>
Date: 2004/03/17 Wed AM 03:16:10 EST
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Subject: Re: [Nant-users] requesting help with a build error
You can't have a fileset nested in the references element (I
understand that the task docs are somewhat misleading sometimes), and
you probably shouldn't use the frompath="true" on the <includes>
element in <sources> and <resources> (unless you want to locate
sources or resources on the PATH).
You should try something like this :
<vbc optioncompare="text" optionexplicit="true" optionstrict="true"
removeintchecks="true" rootnamespace="${basename}"
output="${build.fullpath}\${basename}.dll" target="library"
debug="${debug}">
<references basedir="${build.fullpath}">
<includes asis="true" name="System.dll" />
<includes asis="true" name="System.Collections.dll" />
<includes asis="true" name="System.Configuration.dll" />
<includes asis="true" name="System.Data.dll" />
<includes asis="true" name="System.Drawing.dll" />
<includes asis="true" name="System.Web.dll" />
<includes asis="true" name="System.XML.dll" />
<includes name="*.dll" />
</references>
<sources basedir="${build.rootpath}" failonempty="true">
<includes name="**/*.vb" />
</sources>
<resources basedir="${build.rootpath}" failonempty="true"
dynamicprefix="true" prefix="${basename}">
<includes name="**/*.resx" />
</resources>
</vbc>
Hope this helps,
Gert
Curt Zarger
ASM Research, Inc.
703-752-5185
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users