Hi, all. I have configured a .build file for NAnt  (version 0.85) to
compile code to form a library (framework used is .NET 1.1), but I found
that the output dll from executing NAnt on the build file is different
from that compiled from using Visual Studio 2003. (The size of the dll
compiled from using NAnt is smaller than that from VS 2003).

Here's the contents of the build file :

<?xml version="1.0" encoding="UTF-8"?>
<project name="ConnectionManager"
default="DataObjectsConnectionManager">
<property name="debug" value="false"/>  
<target name="DataObjectsConnectionManager" description="compile
DataObjects/ConnectionManager">
        <mkdir dir="Object/bin"/>
        <vbc target="library" output="Object/bin/ConnectionManager.dll"
debug="${debug}" 
                optioncompare="text"
                optionexplicit="true"
                optionstrict="false"
                optionoptimize="true"
                rootnamespace = "ConnectionManager">
            <imports>
                <import namespace="Microsoft.VisualBasic" />
                <import namespace="System" />
                <import namespace="System.Collections" />
                <import namespace="System.Data" /> 
                <import namespace="System.Diagnostics" />
              </imports>
            <sources>
                <include name="Object/*.vb" />
            </sources>
            <references>
                <include name="System.dll" />
                <include name="System.Data.dll" />
                <include name="System.XML.dll" />
                <include name="System.DirectoryServices.dll" />
            </references>
        </vbc>
</target>
</project>


Is there something that I'm missing? Or is the vbc task doing something
different from what VS 2003 does?

Thanks in advance for answering.

  -Andrew

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

Reply via email to