You're quite right, of course! That was a bit of an aggressive fix... I'm using the <solution> task. I'll run three tests against a minimal example
1a) Run using the current build 1b) Run using my (less aggressively) modified version - which just takes out the IsLicensed thing. 2) Run using 0.83 build 3) Run lc.exe - which is, of course, remarkably similar in implementation to the license task And I'll let you know what the results are. Hopefully, I'll get a chance to do that tonight. Tomorrow lunchtime at the latest... Thanks, M -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 22 April 2004 20:32 To: Matthew W. Adams; [EMAIL PROTECTED] Subject: Re: [Nant-users] Licensing Components Matthew, I know too little of licensing in .NET itself, but commenting out that code will render the license task useless, as this code will then just create an empty licenses file, no ? : using (FileStream fs = new FileStream(licensesFile, FileMode.Create)) { // note the ToUpper() - this is the behaviour of VisualStudio DesigntimeLicenseContextSerializer.Serialize(fs, Path.GetFileName(licenseTask.Target.ToUpper(CultureInfo.InvariantCulture )), dlc); licenseTask.Log(Level.Verbose, licenseTask.LogPrefix + "Created new license file {0}.", licensesFile); } Are you using the <license> task directly or do you use the <solution> task ? If you're using the <license> task, would you be willing to try whether you get the same issue in NAnt 0.83 ? Thanks, Gert ----- Original Message ----- From: "Matthew W. Adams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 4:16 PM Subject: [Nant-users] Licensing Components Hi folks. >From the Nightlies of the 20/04 we've had to comment out the following: // try { // LicenseManager.CreateWithContext(tp, dlc); // } catch (Exception ex) { // if (IsSerializable(ex)) { // throw new BuildException(string.Format(CultureInfo.InvariantCulture, // "Failed to create license for type '{0}'.", tp.FullName), // licenseTask.Location, ex); // } // // // TO-DO : remove debug code // licenseTask.Log(Level.Debug, "LicenseManager.CreateWithContext failed: " // + ex.ToString()); // // END TO-DO // // // do not directly pass the exception as inner // // exception to BuildException as the exception // // is not serializable, so construct a new // // exception with message set to message of // // original exception // throw new BuildException(string.Format(CultureInfo.InvariantCulture, // "Failed to create license for type '{0}'.", tp.FullName), // licenseTask.Location, new Exception(ex.Message)); // } And also the following lines // licenseTask.Log(Level.Debug, licenseTask.LogPrefix // + "Is licensed : " + LicenseManager.IsLicensed(tp)); from Tasks\LicenseTask.cs The original code is using one particular licensing mechanism to check to see if the code can be licensed. It is not necessary to do this to compile the licenses into the application, and, unfortunately, there are a few component types (ChartFX, Infragistics), which do *not* use this licensing mechanism internally. .NET only mandates the attribute, not the creation mechanism. (Which is why we can leave the 'check for the attributes' code in place - this is a reasonable test). This corresponds to Bug#932073 in the Nant Sourceforge bug tracking system. https://sourceforge.net/tracker/index.php?func=detail&aid=932073&group_i d=31650&atid=402868 I don't know if this has been updated more recently? Thanks, Matthew Matthew Adams Director of R&D Digital Healthcare Ltd _____ From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 22 April 2004 13:51 To: Nicklas Norling; [EMAIL PROTECTED] Subject: Re: [Nant-users] Nightly April 21'st I'll fix it this evening or tomorrow. Thanks for the report. Gert ----- Original Message ----- From: Nicklas Norling <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, April 22, 2004 2:11 PM Subject: [Nant-users] Nightly April 21'st Seems there has sneaked in an error from the nightly 03-20 to 04-21. Trying to compile my old trusty solution that worked with 03-20 and that now errors out with: [solution] Starting solution build. BUILD FAILED Error checking whether 'C:\CodeModules\Apa\MontgomeryClient\src\ fndwin\framework\Design\IfsFeatureProjectSetup\IfsFeatureProjectSetup.vd proj' is an enterprise templ ate project. The data at the root level is invalid. Line 1, position 1. Total time: 0.6 seconds. I suppose vdproj should be filtered out before looking into the structure of the xml file? /Nicke ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg297 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users