John,

This appears to be due to some change in .NET 2.0 wrt to the assembly
loader.

I'll commit a workaround to cvs in a minute.

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nant-
> [EMAIL PROTECTED] On Behalf Of John Cole
> Sent: woensdag 13 september 2006 17:24
> To: nant-developers@lists.sourceforge.net
> Subject: [nant-dev] Error CS1703 when using NAnt task...
> 
> I was able to make a new MSI and started testing against our build
> scripts (YEA!).
> 
> I've run into a problem.  If I execute the <nant> task on a build files
> that have a <script> tags that loads the same assembly, I get the
> following
> error:
> 
> C:\src\NAnt\UtilityCenter\2x\uai\Utilities\PerformanceCalculator\defaul
> t.bui
> ld(149,3):
>             Compilation failed:
>             error CS1703: An assembly with the same identity
> 'System.Data, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089' has already been imported. Try
> removing one of the duplicate references.
> 
> If you want to simulate this, create two build files and place the
> following script in each one:
> 
>       <script language="C#" prefix="script">
>               <references>
>                               <include name="System.Data.dll" />
>               </references>
> 
>               <code><![CDATA[
> 
>               [Function("CreateRegistryGuid")]
>               public string CreateRegistryGuid() {
> 
>                       return "{" + Guid.NewGuid().ToString().ToUpper() +
> "}";
> 
>               }
> 
>               ]]>
>               </code>
>       </script>
> 
> 
> Now create a build file that calls both of those via a <nant> task.
> The second call should fail.
> 
> Thanks,
> 
> John
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the sender. This message contains confidential information and is
> intended only for the individual named. If you are not the named
> addressee you should not disseminate, distribute or copy this e-mail.
> 
> -----------------------------------------------------------------------
> --
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-
> us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> nant-developers mailing list
> nant-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-developers


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to