Gert et al, I have had a chance to try license generation again with the latest nightly (NAnt 0.85 (Build 0.85.1533.0; net-1.0.win32; nightly; 13/03/2004)). Unfortunately, I am still getting a "License Attribute not found" exception.
My build file looks like: <solution configuration="${gbewebsite.configuration}" > <projects> <includes name="${gbewebsite.projdir}\..\..\BetdaqWebControls\BetdaqWebControls.csproj "/> <includes name="${gbewebsite.projdir}\${gbewebsite.projfile}" /> </projects> </solution> Here is the debug output ...<snipped>... [csc] Found resource linkage 'GBE.Web.UI.Home' in dependent file 'C:\Inetpub\wwwroot\GBE\Home.aspx.cs'. [solution] - C:\Inetpub\wwwroot\GBE\licenses.licx [license] Compiling license file 'C:\Inetpub\wwwroot\GBE\licenses.licx' to 'C:\DOCUME~1\pmcevoy\LOCALS~1\Temp\ggiufny6\GBE.dll.licenses' using target 'GBE.dll'. [license] Loading assemblies ... [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Design.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll (skipped) [license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll (skipped) [license] C:\Program Files\Infragistics\UltraWebNavigator\v3.00\Infragistics.WebUI.UltraWebNaviga tor.v3.dll (loaded) [license] C:\Inetpub\wwwroot\GBE\lib\log4net.dll (loaded) [license] C:\Inetpub\wwwroot\GBE\lib\MetaBuilders.WebControls.RowSelectorColumn.dll (loaded) [license] C:\Inetpub\wwwroot\GBE\lib\System.Web.UI.WebControls.DomValidators.dll (loaded) [license] C:\Program Files\Infragistics\UltraWebGrid\v2.1\Infragistics.WebUI.UltraWebGrid.v2.dll (loaded) [license] C:\Program Files\Infragistics\UltraWebChart\v3.00\Infragistics.WebUI.Shared.dll (loaded) [license] C:\Inetpub\BetdaqWebControls\bin\Debug\BetdaqWebControls.dll (loaded) [license] Creating licenses ... [license] Infragistics.WebUI.UltraWebGrid.UltraWebGrid, Infragistics.WebUI.UltraWebGrid.v2, Version=2.1.20033.4, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb: [license] file:///C:/Program Files/Infragistics/UltraWebGrid/v2.1/Infragistics.WebUI.UltraWebGrid.v2.dll [solution] Cleaning up temp folder C:\DOCUME~1\pmcevoy\LOCALS~1\Temp\ggiufny6. [solution] File C:\DOCUME~1\pmcevoy\LOCALS~1\Temp\ggiufny6\compile-commands.txt has other than normal attributes. Fixing. BUILD FAILED Failed to create license for type 'Infragistics.WebUI.UltraWebGrid.UltraWebGrid'.: NAnt.Core.BuildException: Failed to create license for type 'Infragistics.WebUI.UltraWebGrid.UltraWebGrid'. ---> System.Exception: License attribute not found --- End of inner exception stack trace --- Server stack trace: at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTask, String licenseFile) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.DotNet\Tasks\LicenseT ask.cs:line 386 at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa ge msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTask, String licenseFile) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.DotNet\Tasks\LicenseT ask.cs:line 213 at NAnt.DotNet.Tasks.LicenseTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.DotNet\Tasks\LicenseT ask.cs:line 194 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Task.cs:line 151 at NAnt.VSNet.Resource.CompileLicx() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\Resource.cs:lin e 192 at NAnt.VSNet.Resource.Compile(ConfigurationSettings configurationSettings) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\Resource.cs:lin e 86 at NAnt.VSNet.Project.Build(ConfigurationBase configurationSettings) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\Project.cs:line 350 at NAnt.VSNet.ProjectBase.Compile(String configuration) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\ProjectBase.cs: line 163 at NAnt.VSNet.Solution.Compile(String configuration) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\Solution.cs:lin e 292 at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.VSNet\Tasks\SolutionT ask.cs:line 368 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Task.cs:line 151 at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Target.cs:line 252 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Project.cs:line 878 at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Project.cs:line 835 at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmpCD8.tmp\src\NAnt.Core\Project.cs:line 903 Total time: 4.6 seconds. -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 08 March 2004 09:03 To: Peter McEvoy; Dave Bost; [EMAIL PROTECTED] Subject: Re: [Nant-users] ASP.NET Projects with references to Infragistics Peter, Can you please try using the <solution> task again with the latest nightly build ? I made a lot of improvements over the weekend, but please send me a zip file containing a repro if its still not working. I'm really committed to fixing this ! Gert ----- Original Message ----- From: Peter McEvoy To: Dave Bost ; [EMAIL PROTECTED] Sent: Monday, March 08, 2004 9:55 AM Subject: RE: [Nant-users] ASP.NET Projects with references to Infragistics We are using infragistics as well (in fact the two components that you specify). I found we could not use the solution task at all when a licensed component was being used (the exact same error as you - this was visible even in version 0.852004026). We believe that the solution task when using the license task references the wrong outputdir. We needed to break the building of the web app into several smaller steps: Use the <license> task to create a .license file from the license.licx Use <resgen> to generate resources from **.resx use the <csc> task to compile **.cs - the <csc> must use a nested <resources> element, referencing the .resources and .licenses files. Not ideal, but I could not create a test case that demonstrated the problem for nant-devel (as I am not entitled to send on the infragistics component) (if there is a way that I can submit a test case using license stubs, I would be happy to try to build one...) Pete -----Original Message----- From: Dave Bost [mailto:[EMAIL PROTECTED] Sent: 05 March 2004 21:12 To: [EMAIL PROTECTED] Subject: [Nant-users] ASP.NET Projects with references to Infragistics Is anyone else using NAnt to build their ASP.NET projects that reference the Infragistics components? I'm trying to get my client converted over to using NAnt. They are using two components from Infragistics, UltraWebMenu and UltraWebChart. When you drop the Infragistics component on a form, the environment automatically generates the licenses.licx file within your project. When I use NAnt to build my project, I get the following error: [license] Creating licenses ... [license] Infragistics.WebUI.UltraWebNavigator.UltraWebMenu, Infragistics.WebUI.UltraWebNavigator.v2, Version=2.0.50 00.118, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb: [license] file:///C:/Inetpub/wwwroot/LicProject/Lib/Infragistics.WebUI.UltraWebNavigat or.v2.dll BUILD FAILED Failed to create license for type 'Infragistics.WebUI.UltraWebNavigator.UltraWebMenu'.: NAnt.Core.BuildException: Failed to create license for type 'Infragistics.WebUI.UltraWebNavigator.UltraWebMenu'. ---> System.Exception: License attribute not found --- End of inner exception stack trace --- Server stack trace: at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTask, String licenseFile) in c:\Documents and Settings\Administrator\Local Settings\Temp\tmp279.tmp\src\NAnt.DotNet\Tasks\LicenseTask.cs:line 386 >From what I can tell, Infragistics keeps it's licensing info in another dll, Infragistics.WebUI.Shared.dll. Might that be the problem? Is NAnt not compatible with projects referencing Infragistics? If you have an ASP.NET application that references the Infragistics components, how did you get yours to work? What version of NAnt are you running? Thanks for the help. dave bost | director of technology | solution partners, inc. | o: 630.416.1335 x12 | c: 630.650.9012 | [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users