Here is a sample from our ASP.NET build script using nAnt 0.84.  We do the following:
 
1) copy over the Infragistic files to build directory and the dlls to the build's bin directory.
2) Then we compile our assembly that reference the infragistic components.  We have the license.licx file in the same directory as the source files for this assembly.
3)  [Not shown] Copy all the files, dlls out to our dev, int and prod servers.
 
 <!-- Infragistics.NetAdvantage12003 Properties -->
 <property name="infragistics.NetAdvantage2003.share" value="
\\${build.server}\Infragistics.NetAdvantage2003" />
 <property name="infragistics.NetAdvantage2003.version" value="Infragistics.NetAdvantage2003-3.3" />
<target name="copy-infragistics" depends="prep" description="">
 
   <echo message="Copying ${infragistics.NetAdvantage2003.version}..." />
   
   <copy todir="${build.dir}\infragistics"
      overwrite="false"
      failonerror="true"
      verbose="${isVerbose}">
    <fileset basedir="${infragistics.NetAdvantage2003.share}\${infragistics.NetAdvantage2003.version}\infragistics" failonerror="${isVerbose}">
     <includes name="**/*"/>
    </fileset>
   </copy>
   
   <copy todir="${bin.dir}"
      overwrite="false"
      failonerror="true"
      verbose="true">
    <fileset basedir="${infragistics.NetAdvantage2003.share}\${infragistics.NetAdvantage2003.version}\bin" failonerror="${isVerbose}">
     <includes name="**/*"/>
    </fileset>
   </copy>
 </target>
 
and here is the <csc> task we use to build the assembly that references Infragistics
 
<csc target="library"
    output="${bin.dir}\${dll.name}.dll"
    debug="${createDebugSymbols}"
    doc="${docs.dir}\${dll.name}.xml"
    failonerror="true"
    verbose="${isVerbose}">
   <sources basedir="${earth.modules.src.dir}\C3Stats">
    <includes name="*.cs" />
   </sources>
   <references basedir="${bin.dir}">
    <includes name="Intel.Portal.Framework.dll"/>
    <includes name="ADODB.dll"/>
    <includes name="Intel.Capability.Framework.dll"/>
    <includes name="Intel.Data.dll"/>
    <includes name="Interop.ADOMD.dll"/>
    <includes name="log4net.dll"/>
    <includes name="Intel.Portal.dll"/>
    <includes name="Intel.Earth.Framework.dll"/>
    <includes name="DundasWebChart.dll"/>
    <includes name="infragistics.webui.ultrawebgrid.v2.dll"/>
    <includes name="Infragistics.WebUI.Shared.dll"/>
   </references>
   <arg value="/warn:${warningLevel}"/>
  </csc>
 
Doing these things, we haven't seen any problems with building our assemblies that reference Infragistic components.
 
I hope this helps you out.
 
Jason


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Bost
Sent: Friday, March 05, 2004 2:12 PM
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.UltraWebNavigator.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]

 

Reply via email to