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.Web.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\Reports\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.Services.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.Logic\UCCBL.dll" [solution] /r:"E:\temp\dotNET\projects\release\Libraries\3rdParty\MicrosoftApplicationBlocks.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\CustomExceptionClass\CustomExceptionClass.dll" [solution] /r:"E:\temp\dotNET\projects\Release\Libraries\UCCX\Business\com.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\Utilities\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.

Thanks,

Alejandro

Gert Driesen wrote:

Alejandro,

Would it be possible to send me a repro for this issue (including the
necessary assemblies) ?

Gert

PS. You are using a recent version of NAnt, right ? ;-)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alejandro Calbazana
Sent: donderdag 23 juni 2005 18:10
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] solution task pulling wrong reference from gac

Hello,

I ran in to an issue today where my build fails b/c of a reference obtained from the gac.

I have Crystal Decisions installed (1.0 and 2.0). It seems that a method is not available in the 1.0 version of the engine library and is available in the 2.0 version. When I go to build, i see that the /r switch on the project includes the 1.0 even though my project file has 2.0 marked in the hint path.

Is there a way to specifiy which verion I want to have my code built againt? Even it means hacking up the project file?
Thanks,

Alejandro


-------------------------------------------------------
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
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




-------------------------------------------------------
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
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users






-------------------------------------------------------
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
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to