Hi Bart, that sounds exactly like what I experienced a while back.  I posted my solution/workaround here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg04749.html

 

From following the various license task issues people have experienced on this list, I believe that different vendors implement their licensing schemes in different ways, so this may not work for your particular vendor.  Let me know if my instructions are unclear and I can provide more detail.  I’ve tried to help several other users with similar license issues, but nobody else has reported success yet.

 

Oran

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Read
Sent: Friday, October 08, 2004 8:55 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] References from solution do not appear to be persisted in LicenseTask

 

Dear All,

 

 

I’m having problems compiled a project using the <solution> task.  The solution uses the .NET licensing support and incorporates a .licx file.  However, when the license task attempts to compile the license I get the following output:

 

F:\integration\Halibut\Build>nant -D:integrationRoot=F:\integration -D:version=1.0.0 -D:debug=true -buildfile:juscruisin.build build

NAnt 0.85 (Build 0.85.1740.0; net-1.0.win32; nightly; 06/10/2004)

Copyright (C) 2001-2004 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///F:/integration/Halibut/Build/juscruisin.build

Target(s) specified: build

 

 

buildCommon:

 

 [solution] Starting solution build.

 [solution] Building 'CommonCLI' [Debug] ...

 

buildNewtDll:

 

 [solution] Starting solution build.

 [solution] Building 'NewtCLI' [Debug] ...

              [license] Processing complist 'F:\integration\Halibut\1.0.0\NewtDl

l\licenses.licx'...

              [license] F:\integration\Halibut\1.0.0\NewtDll\licenses.licx(1) :

error LC0003 : Unabled to resolve type 'xxx.xxx.xxx.xxx'

              [license] Creating Licenses file C:\DOCUME~1\BART~1.REA\LOCALS~1\T

emp\tmp2010.tmp\xxx.xxx.xxx.dll.licenses...

 

BUILD FAILED

 

External Program Failed: C:\DOCUME~1\BART~1.REA\LOCALS~1\Temp\tmp2010.tmp\lc.exe

 (return code was -1)

 

Total time: 1.3 seconds.

 

It seems as though the project references are not being passed in to the license task, which causes it to fail when attempting to resolve the type referenced in the .licx file.  Anybody have any ideas about this?  Am I doing something wrong or is this a bug?  I’m using the NAnt 0.85 nightly build from 6th October as I’m running with CruiseControl.NET (or at least I will be) and 0.84 doesn’t embed error messages correctly in the XML log.  The task in my build file that fails is as follows:

 

<target name="buildNewtDll" depends="buildCommon" description="xxxx">

            <solution

                        configuration="${solutionConfiguration}"

                        includevsfolders="true"

                        outputdir="${buildDir}">

                        <projects>

                                    <include name="${newtDllBase}\NewtCLI.csproj"/>

                        </projects>

            </solution>

    </target>

 

Any help would be gratefully received.

 

 

Many thanks,

 

======================

Bart Read

Software Engineer

Red Gate Software Ltd

+44 (0) 870 160 0037 ext 31

======================

 

Reply via email to