Gert,

Yes, I am able to compile the licenses.licx file with the lc.exe command line tool.  Actually, after reading your response I was able to get my build working.

Two important things I found were that for some reason for the ChartFX assembly, even though it was in the GAC, I had to explicitly reference the dll in the <licenses /> tag:

<license input="licenses.licx" output="ChartFXLicensing.exe.licenses" licensetarget="ChartFXLicensing.exe" verbose="true">
    <assemblies>
        <include name="ChartFX.dll" />
    </assemblies>
</license>

and then I had to include the resulting licenses file as a resource:

<resources basedir=".">
    <include name="**\*.resx" />
    <include name="ChartFXLicensing.exe.licenses" />
</resources>

At first I tried using "**\*.licenses" as the name for the second <include /> tag, but that caused duplicate resource errors.  Once I explicitly identified the .licenses file, everything went smoothly.

FYI, in case you are interested it appears you can get a trial version of ChartFX here:
http://www.chartfx.com/SFXTrial/Trial_downloads.aspx?ProductId=CfxNet

Thanks again for your help,
Rich

Gert Driesen wrote:
----- Original Message -----
From: "Richard Sbarro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 06, 2004 8:53 AM
Subject: [Nant-users] Problems with ChartFX licensing...


  
Hello,

I am receiving the following error when attempting to add a licenses.licx
    
file to an .exe (using the 07/05 nightly build)...
  
licenses.licx(11) : error LC0003 : Unabled to resolve type
    
'SoftwareFX.ChartFX.Chart, ChartFX'
  
I'm not sure why it can't resolve this type.  I get the same error, even
    
when I use the full assembly name including the version, culture, etc.  I
tried poking around in the code but I was unable to locate the "Unabled"
message, so maybe the licenses task uses the lc.exe program?  However, maybe
not since when I run lc.exe on the licx file it seems to work ok.
  
Here's a snippet from the build script:
<license input="MyProject\licenses.licx" output="MyProject.exe.licenses"
    
licensetarget="MyProject.exe">
  
    <assemblies>
       <lib>
          <include name="Build\ChartFX\**\*.dll" />
       </lib>
    </assemblies>
</license>
    

The correct syntax is :

<license input="MyProject\licenses.licx" output="MyProject.exe.licenses"
licensetarget="MyProject.exe">
    <assemblies>
           <include name="Build\ChartFX\**\*.dll" />
    </assemblies>
</icense>

  
I've tried both with and without the <assemblies /> tag, since all of the
    
assemblies referenced in license.licx are in the GAC.

hmm, if these are in the GAC you should indeed not need to specify assembly
references.


  
Also, I should mention that I am not using a SOLUTION compile since I am
    
trying to merge our LOB and UI layers into one assembly using nAnt due to
ChartFX's asinine licensing rules (basically, our license doesn't allow us
to reference the ChartFX dll's from a dll).  I'm hoping there's an easy fix,
otherwise I'll just have to merge the projects together.  I'm also wondering
if there's any way I can just use my manually generated licenses file in the
build...

There's currently no clean way to specify a compiled resource or license
file, unless you want to specify it using an <arg> element of the
<csc>/<vbc> task.

Can you send us a repro for this issue ?  Is there a trial version available
for ChartFX, so we can test it ?  Are you able to compile the licx file
using the lc.exe commandline tool directly ?

Gert


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


  
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to