Hello

I'm a new NAnt user trying to use the tool.

My problem is this:

1. I use ComponentOne (C1) components which require a license.
2. I've created the code to generate the .licenses file
3. The script builds ok, but when I run the output, I get popup boxes indicating that I'm not using a licensed version, and  should recompile with a licensed one.
4. I've been browsing for a while in the messages list, and I've found other users with similar problems, (One of them is Steve Gupta [http://sourceforge.net/mailarchive/message.php?msg_id=7672687] ).
5. I've tried with no succes to reproduce the code that Steve posted there, and I simply cannot find my mistake.
6. I've created a test project with som C1 components in it, and I also have the problem there (code attached bellow).

Could anybody tell me please what I'm doing wrong?

My environment:
NAnt 0.85-rc3 (Nant.exe version: 0.85.1932.0)
.NET 1.1 (Visual Basic.NET)


Thanks in advance

Juan Carlos Becerra

_________________

<?xml version="1.0"?>
<project name="NAntLicenseTest" default="test">
   
    <property name="c1.path" value="..\..\..\..\..\..\Program Files\ComponentOne Studio.NET\bin" />

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