> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alejandro Calbazana
> Sent: donderdag 23 juni 2005 21:58
> To: [email protected]
> Subject: Re: [Nant-users] solution task pulling wrong 
> reference from gac
> 
> Gert,
> 
> Thanks for the response.  I'll try to supply what I can...
> 
> I am using version NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) .  I 
> had this all ready in my buffer to paste in my original post 
> but forgot :)
> 
> Here is a snip of my project file:
> 
> <Reference Name = "crystaldecisions.web" AssemblyName = 
> "CrystalDecisions.Web" HintPath = "C:\Program Files\Common 
> Files\Crystal 
> Decisions\2.0\managed\crystaldecisions.web.dll" /> <Reference Name = 
> "System.Web.Services" AssemblyName = "System.Web.Services" HintPath = 
> "..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.We
b.Services.dll" 
> /> <Reference Name = "CrystalDecisions.Shared" AssemblyName = 
> "CrystalDecisions.Shared" HintPath = "C:\Program Files\Common 
> Files\Crystal Decisions\2.0\managed\CrystalDecisions.Shared.dll" /> 
> <Reference Name = "CrystalDecisions.ReportSource" AssemblyName = 
> "CrystalDecisions.ReportSource" HintPath = "C:\Program Files\Common 
> Files\Crystal 
> Decisions\2.0\managed\CrystalDecisions.ReportSource.dll" 
> /> <Reference Name = "CrystalDecisions.CrystalReports.Engine" 
> AssemblyName = "CrystalDecisions.CrystalReports.Engine" HintPath = 
> "C:\Program Files\Common Files\Crystal 
> Decisions\2.0\managed\CrystalDecisions.CrystalReports.Engine.dll" /> 
> <Reference Name = "Utilities" Project = 
> "{C32E8EEA-6DBD-4CA9-A4FC-BAC4B993B517}" Package = 
> "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}" />
> 
> Here is a snip of the Nant solution output:
> 
> [solution] Starting compiler...
>  [solution] Commands:
>              [solution]     /target:library
>              [solution]     /nologo
>              [solution]     /rootnamespace:Reports
>              [solution]     /optionexplicit+
>              [solution]     /optionstrict-
>              [solution]     /optioncompare:binary
>              [solution]     /d:DEBUG=false
>              [solution]     /d:TRACE=true
>              [solution]     /baseaddress:0x11000000
>              [solution]     /removeintchecks-
>              [solution]     /debug-
>              [solution]     /optimize+
>              [solution]     /warnaserror-
>              [solution]     
> /out:"E:\temp\dotNET\projects\development\web\cscinternet\Repo
rts\obj\Release\Reports.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\Release\Libraries\3rdParty\log4net
> \log4net.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Se
rvices.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
>              [solution]     /r:"C:\Program Files\Common Files\Crystal 
> Decisions\1.1\Managed\CrystalDecisions.Web.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\release\Libraries\UCCX\Business.Lo
gic\UCCBL.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\release\Libraries\3rdParty\Microso
ftApplicationBlocks.ExceptionManagement>
\Microsoft.ApplicationBlocks.ExceptionManagement.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
>              [solution]     /r:"C:\Program Files\Common Files\Crystal 
> Decisions\1.1\Managed\CrystalDecisions.Shared.dll"
>              [solution]     /r:"C:\Program Files\Common Files\Crystal 
> Decisions\1.1\Managed\CrystalDecisions.ReportSource.dll"
>              [solution]     /r:"C:\Program Files\Common Files\Crystal 
> Decisions\1.1\Managed\CrystalDecisions.CrystalReports.Engine.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\Release\Libraries\Common\CustomExc
eptionClass\CustomExceptionClass.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\Release\Libraries\UCCX\Business\co
m.cscinfo.UCCX.Business.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\release\Libraries\Common\Framework
> \com.cscinfo.Framework.dll"
>              [solution]     
> /r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
>              [solution]     
> /r:"E:\temp\dotNET\projects\development\web\cscinternet\Utilit
ies\obj\Release\Utilities.dll"
> 
> Note that 1.1 is set for the Crystal Decisions references... What I 
> really wanted is from the 2.0 version.
> 
> I was able to get around this by uninstalling both versions 
> of Crystal 
> and then re installing the version that I wanted 
> (sledgehammer approach 
> I am sure, but I was in a crunch).  This task now works as 
> expected but 
> has left me a little confused.
> 
> If I have some time, I will try a simple test with unrelated 
> assembles.  
> I suppose I might be able to reproduce this by creating 2 versions of 
> the same assembly, adding them to the GAC, and them running a build.


Neither NAnt nor VS.NET (at least not VS.NET 2002 and 2003) use the GAC to
resolve assembly references.

In your case, I'm pretty sure the AssemblyFolders (these are a set of
registry keys,
HKLM|HKLU\SOFTWARE\Microsoft\VisualStudio\<version>\AssemblyFolders and
HKLM|HKLU\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders) were used to
resolve the assembly references.

So there must still be something different (compared to VS.NET) with the
order in which we resolve these references.

It would be great if you could send me a small repro.

Gert



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to