Mateusz,

This is a know issue in NAnt 0.84.  NAnt 0.84 by default target .NET 1.0,
and its fooled to believe that the .NET Framework 1.0 is installed, because
of the fact that the .NET Framework 1.1 installer also creates a
"C:\WINNT\Microsoft.NET\Framework\v1.0.3705" directory.

In NAnt 0.85, we target the CLR on which NAnt is running by default (if its
supported), and we also check whether a valid System assembly exists in the
assembly directory of the framework that you're targeting.

So, to come to a conclusion : try using the NAnt 0.85 nightly build
(http://nant.sourceforge.net/nightly/builds) !

Hope this helps,

Gert

----- Original Message ----- 
From: "Mateusz Łoskot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 5:04 PM
Subject: [Nant-users] NAnt finds wrong .NET Framework version


Hello,

I'm trying to use NAnt predefined properties but it seems that they does
not work correctly.

I have only .NET Framework 1.1 installed
under the following default path:
c:\WINNT\Microsoft.NET\Framework\v1.1.4322

I use a kind of test target like this:

<target name="test" description="Test build properties">
<echo message="${nant.settings.defaultframework}" />
<echo message="${nant.settings.currentframework}" />
</target>

When I call NAnt with test target I get following output:

######################## OUTPUT ########################
D:\__mloskot\__PROJECTS\mLas.Inzynier\_project\mLas.Inzynier>NAnt
uild test
NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 2003-12-26)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/__mloskot/__PROJECTS/mLas.Inzynier/_project
r.build
Target(s) specified: test
      [echo] Using 'net-1.0' framework on 'win32' platform.

test:

      [echo] net-1.0
      [echo] net-1.0

BUILD SUCCEEDED

Total time: 0.2 seconds.
########################################################

As you can see, NAnt recognizes wrong .NET Framework on my machine:

      [echo] net-1.0
      [echo] net-1.0

Am I doing something wrong or NAnt is giving incorrect values ?

Thanks for any help

-- 

Mateusz Łoskot
mateusz at loskot dot net


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to