I'm trying to adopt NAnt in my projects, and it is working pretty well so far, but I have a problem which I haven't been able to get rid of.
I use ComponentOne components, which generate a license file (.licx). If you don't have the proper license, then you can compile, but you always get some annoying message boxes indicating that you are using a not licensed version of the product (which is not my case) .
My problem is that when I build with NAnt, the output application always displays the message boxes, which in fact doesn't happen when I build with Visual Studio.
Some days ago I posted a message with the same question, ( you can find it at: http://sourceforge.net/mailarchive/message.php?msg_id=34437872 ). I received an answer from Gert Driesen, who kindly asked me to send him all the "implicated" files (which I did, but I'm not sure if he received them).
Does anybody else know what could be going wrong?
My environment is:
.NET Framework 1.1 with Service Pack 1 (Programming in VB.NET)
NAnt 0.85-rc3 (Nant.exe version: 0.85.1932.0 )
NAnt Contrib 0.85-rc4
I will post below a .build example of a test application I created in which I have the problem I just described.
Thanks in advance, your help will be really appreciated.
Regards,
Juan Carlos
-----------------------
<?xml version="1.0"?>
<project name="NAntLicenseTest" default="test">
<property name="c1.path" value="..\C1\" />
<target name="build" description="Create the license and build">
<license
input="..\licenses.licx"
target="output\NantLicenseTest.exe"
output="..\NantLicenseTest.exe.licenses"
verbose="true">
<assemblies>
<include name="${c1.path}\C1.Common.dll" />
<include name="${c1.path}\C1.Win.C1FlexGrid.dll" />
<include name="${c1.path}\C1.Win.C1Sizer.dll" />
<include name="${c1.path }\C1.Win.C1TrueDBGrid.dll" />
</assemblies>
</license>
<vbc
target="winexe"
output="output\NantLicenseTest.exe"
debug="false"
main="NantLicenseTest.Form1"
optioncompare="Binary"
optionexplicit="true"
optionstrict="false"
rootnamespace="NantLicenseTest"
verbose="true">
<sources basedir="..\">
<include name="*.vb" />
</sources>
<resources dynamicprefix="false" prefix="NantLicenseTest" basedir="..\">
<include name="*.resx" />
</resources>
<resources basedir="..\">
<include name="NantLicenseTest.exe.licenses"/>
</resources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="System.Drawing.dll" />
<include name=" System.Windows.Forms.dll" />
<include name="System.Xml.dll" />
<include name="System.Design.dll" />
<include name="${ c1.path}\C1.Common.dll" />
<include name="${c1.path}\C1.Win.C1FlexGrid.dll" />
<include name="${c1.path}\C1.Win.C1Sizer.dll" />
<include name="${ c1.path}\C1.Win.C1TrueDBGrid.dll" />
</references>
<imports>
<import namespace="Microsoft.VisualBasic"/>
<import namespace="System"/>
<import namespace="System.Collections"/>
<import namespace="System.Data"/>
<import namespace="System.Diagnostics"/>
<import namespace="System.Drawing"/>
<import namespace="System.Windows.Forms"/>
</imports>
</vbc>
</target>
<target name="test" depends="build">
</target>
</project>
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users