Matthias,

I think I know what might be causing this.  For now, the NAnt.MSNetTasks assembly is 
only built on systems with the .NET Framework 1.0 installed. However, the current 
scheme for detecting whether the .NET Framework 1.0 is installed only checks whether 
the framework directory itself is available.

Now, when you install the .NET Framework 1.1, the .NET 1.0 framework directory (in 
<windir>\Microsoft.NET\Frameworks) is created, but it does not actually contain the 
framework assemblies and commandline utilities (eg. compilers).  Therefor we should 
enhance our framework detection code to deal with this.  I'm pretty sure there's 
already a bug report for this (don't have time to check this right now).

In your case, NAnt thinks that the Microsoft .NET Framework 1.0 is indeed available 
(because framework::exists('net-1.0') returns true) on your system, and therefor tries 
to build the NAnt.MSNetTasks assembly with it ...

Aside from this issue, we should also have a mechanism in place that will build the 
NAnt.MSNetTasks assembly using any Microsoft .NET framework version ...

Gert

>-----Original Message-----
>From: Matthias Cavigelli [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, February 17, 2004 05:46 PM
>To: [EMAIL PROTECTED]
>Subject: [nant-dev] Partially failing to build from source
>
>Hello
>
>I wanted to build NAnt from source, but only succeeded partially:-(
>
>I have done the following steps:
>
>1. checked out source from cvs (today)
>2. Moved to the NAnt directory
>3. Added the bin directory to the path: 'PATH=%PATH%;bin'
>4. Run the following command: 'NAnt.exe -k:net-1.1 -l:NAntInstallLog.txt'
>
>The build fails. I have appended the log file:
>
>- Almost at the end I can see, that NAnt is looking for the 1.0 .Net
>Framework, although I set to the 1.1 Framework with the command line
>option '-k'.
>- Furthermore I think it's strange, that the NAnt.Console, NAnt.DotNet, 
>NAnt.Zip, NAnt.NUnit and the NAnt.SourceControl builds succeed. Only the
>NAnt.MSNet build fails.
>
>Thanks for any help, Matthias
>
>http://mc.freezope.org/
>
>-------------- logfile NAntInstallLog.txt ---------------
>
>Buildfile: file:///C:/Programme/NAnt/nant/NAnt.build
>Target(s) specified: test
>      [echo] Using 'net-1.1' framework on 'win32' platform.
>
>init:
>
>
>debug:
>
>
>set-runtime-configuration:
>
>
>set-net-1.1-runtime-configuration:
>
>
>set-runtime-configuration-flags:
>
>
>set-net-1.1-runtime-configuration:
>
>
>set-runtime-configuration-flags:
>
>
>create-common-assemblyinfo:
>
>    [attrib] Setting file attributes for 1 files to Normal.
>
>build:
>
>      [echo] Build Directory is
>C:\Programme\NAnt\nant/build/net-1.1.win32/nant-0.85-debug
>     [mkdir] Creating directory
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin'.
>      [copy] Copying 3 files to
>'C:\Programme\NAnt\nant/build/net-1.1.win32/nant-0.85-debug/bin'.
>      [copy] Copying 4 files to
>'C:\Programme\NAnt\nant/build/net-1.1.win32/nant-0.85-debug/bin'.
>      [nant] C:\Programme\NAnt\nant\src\NAnt.Core\NAnt.Core.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.Core/NAnt.Core.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 123 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.Core.dll'.
>
>             BUILD SUCCEEDED
>
>             Total time: 6.9 seconds.
>
>      [nant] C:\Programme\NAnt\nant\src\NAnt.Console\NAnt.Console.build 
>build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.Console/NAnt.Console.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 3 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.exe'.
>                  [copy] Copying 1 file to
>'C:\Programme\NAnt\nant/build/net-1.1.win32/nant-0.85-debug/bin/NAnt.exe.config'.
>
>             BUILD SUCCEEDED
>
>             Total time: 0.5 seconds.
>
>      [nant] C:\Programme\NAnt\nant\src\NAnt.DotNet\NAnt.DotNet.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.DotNet/NAnt.DotNet.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 18 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.DotNetTasks.dll'.
>
>             BUILD SUCCEEDED
>
>             Total time: 1.2 seconds.
>
>      [nant] C:\Programme\NAnt\nant\src\NAnt.Zip\NAnt.Zip.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.Zip/NAnt.Zip.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 4 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.ZipTasks.dll'.
>
>             BUILD SUCCEEDED
>
>             Total time: 0.4 seconds.
>
>      [nant] C:\Programme\NAnt\nant\src\NAnt.NUnit\NAnt.NUnit.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.NUnit/NAnt.NUnit.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 6 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.NUnit.dll'.
>                   [csc] Compiling 14 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.NUnit1Tasks.dll'.
>                   [csc] Compiling 6 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.NUnit2Tasks.dll'.
>
>             BUILD SUCCEEDED
>
>             Total time: 1.9 seconds.
>
>      [nant]
>C:\Programme\NAnt\nant\src\NAnt.SourceControl\NAnt.SourceControl.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.SourceControl/NAnt.SourceControl.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 7 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.SourceControlTasks.dll'.
>
>             BUILD SUCCEEDED
>
>             Total time: 0.5 seconds.
>
>      [nant] C:\Programme\NAnt\nant\src\NAnt.MSNet\NAnt.MSNet.build build
>
>             Buildfile:
>file:///C:/Programme/NAnt/nant/src/NAnt.MSNet/NAnt.MSNet.build
>             Target(s) specified: build
>
>             build:
>
>                   [csc] Compiling 4 files to
>'C:\Programme\NAnt\nant\build\net-1.1.win32\nant-0.85-debug\bin\NAnt.MSNetTasks.dll'.
>
>             BUILD FAILED
>
>             C:\Programme\NAnt\nant\src\NAnt.MSNet\NAnt.MSNet.build(11,10):
>             [csc] C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe 
>failed to start.
>                 Das System kann die angegebene Datei nicht finden
>
>             Total time: 0.1 seconds.
>
>
>BUILD FAILED
>
>Nested build failed.  Refer to build log for exact reason.
>
>Total time: 13.4 seconds.
>--------------EOF---------------------
>
>
>
>
>-------------------------------------------------------
>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>Build and deploy apps & Web services for Linux with
>a free DVD software kit from IBM. Click Now!
>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>_______________________________________________
>nant-developers mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>
>




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to