Bugs item #916822, was opened at 2004-03-15 19:57
Message generated for change (Settings changed) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=916822&group_id=31650

Category: Tasks
>Group: 0.85
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Alexei Ostrov (alexeiost)
Assigned to: Gert Driesen (drieseng)
Summary: Couldn't find referenced assembly ...

Initial Comment:
Right off, sorry if it was already posted and I didnt' find 
the article; if so please respond with a link. 

I use <slolution> tag for building our solution on a 
Windows XP machine. This solution is developed mostly 
on Win2K machines. The difference between these 
machines/OS is that framework on XP is installed into 
C:\windows\... and on Win2K it is installed into 
c:\winnt\... . Because the solution is developed on 
Win2K machines the references in the project files point 
to c:\winnt\... . 
When one opens the solution on the build machine the 
references are &#039;magically&#039; changed and he will see a 
correct referece from within the IDE, so the solution 
builds just fine there. If I build it with NAnt (on XP 
machine), however, I get the error saying that the 
c:\winnt\Microsoft.NET\Framework\v1.1.4322
\System.Data.dll could not be found. Truly so because it 
is in c:\windows\Microsoft.NET\Framework\v1.1.4322\.

How can I get around it?

Thank you, 

Alexei

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

>Comment By: Gert Driesen (drieseng)
Date: 2004-03-15 22:03

Message:
Logged In: YES 
user_id=707851

In NAnt 0.84, the default target framework is .NET Framework 
1.0, so if you build file didn't explicitly specifiy the target 
framework, the <solution> would build you solution using 
the .NET Framework 1.0.

Now, if you specify the -k:net-1.1 option, NAnt actually 
retrieves the location of framework assemblies and tools for 
the .NET Framework 1.1 from the registry.

>From NAnt 0.85 on, the default target framework is the 
framework in which you're running NAnt.

The currently NAnt 0.85 nightly build is in lots of aspects 
more stable than the NAnt 0.84 release (and definitely the 
<solution> task), so I advise you to test the latest nightly 
build.

I'll close this report, but don't hesitate to reopen this case if 
you can reproduce this issue (meaning, without specifying 
the -k:net-1.1 option) using the latest nightly build.

Thanks for the report !

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

Comment By: Alexei Ostrov (alexeiost)
Date: 2004-03-15 21:15

Message:
Logged In: YES 
user_id=996468

just found that '-defaultframework:net-1.1' fixes it. 
but why can't it be taken from registry. As far as I know, am 
I wrong?, 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework 
specifies installation directory in InstallDir key.

I am using 0.84 (which, I believe, is the latest stable).

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

Comment By: Gert Driesen (drieseng)
Date: 2004-03-15 20:28

Message:
Logged In: YES 
user_id=707851

Alexei,

What version of NAnt did you test this with ? Can you try 
using the latest nightly build 
(http://nant.sourceforge.net/nightly/builds) and report back ?

Please attach the project file with which you're having 
problems, if the latest nightly does not resolve this issue.

Thanks !

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to