Bugs item #1497556, was opened at 2006-05-30 13:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1497556&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: antony gorman (neh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compilation error - References for scripts

Initial Comment:
if you call a script block twice when that block has a 
reference to another dll - the second times its called 
it will fail with conmpilation problem 

i.e.

Build Error: NAnt.Core.BuildException
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. //-------------------------------
----------------------------------------------- 

Having checked the source code briefly it appears this 
is as there are two checks to referenced assemblies - 
first check the appdomain for loaded assmeblies adding 
each as a reference, then check the references element 
from the task definition - if you follow this the 
first time it compiles fine, then runs (and so loads 
the referenced assembly) then the second time will add 
it from loaded assemblies then again from the 
references tag and so the compiler thinks its got the 
reference twice and falls over.

cheers



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1497556&group_id=31650


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to