I'm pretty sure it's embedding the licenses file correctly, since 1) the resulting .exe is larger and 2) it actually works on a machine that doesn't have ChartFX installed! =]

Actually, I saw that some people used that approach in a few other places while I was trying to resolve this issue.  It appeared that if I didn't include the
<include name="ChartFXLicensing.exe.licenses" />
line in the resources tag then the compiler wouldn't pick up the .licenses file.

Thanks for the note about the resources, I will check it out.

-Rich

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


  
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>
    

That's very strange ... I'll try to reproduce this later ...

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

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

Are you sure the compiled license is being correctly embedded by doing this
?

By the way : if you want NAnt to generate manifest resource names that match
those of VS.NET, you need to use the following resources attributes :

<resources prefix="<the default namespace>" dynamicprefix="true">
    <include name="**\*.resx" />
</resources>

where the value of prefix should match the default namespace in the VS.NET
project.

  
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
    

I'll give it a try.

Thanks,

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

Reply via email to