Casey,
 
The copyright issue, is something that was fixed post 0.84.  For the Visual C++ tests to succeed you need to execute the VS.NET vsvars32.bat file (eg. C:\Program Files\Microsoft Visual Studio ..NET 2003\Common7\Tools\vsvars32.bat) before building NAnt.
 
For the csc task issue, NAnt did not support an <include> element for filesets up until a very recent nightly build (http://nant.sourceforge.net/nightly/builds), in previous releases this element was called <includes> (for the next release, we'll support both <include> and <includes>), so you'll need something like this :
 

<?xml version="1.0"?>

<project name="helloworld" default="build">

   <target name="build">

    <csc target="exe" output="helloworld.exe">

      <sources>

        <includes name="helloworld.cs" />

      </sources>

    </csc>

  </target>

</project>

 
But your build file will work unmodified on the latest nightly build.
 
Hope this helps,
 
Gert
 
 
----- Original Message -----
Sent: Tuesday, June 29, 2004 11:05 AM
Subject: [Nant-users] Problems building Nant and test project

Just downloaded latest version (0.84), and Nant won’t build itself – it fails it’s own Unit tests – firstly with an issue with the copyright date (2003 vs 2004), then with C++ test errors, which I haven’t worked around. Seems a bit odd it won’t build correctly ‘out of the box’

 

Anyway – decided to ignore that for the moment and use the prebuilt binaries – and created a test directory, with 2 files: helloworld.cs and helloworld.build  ….. running nant on them fails:

 

NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 26/12/2003)

Copyright (C) 2001-2003 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///C:/test/helloworld.build

Target(s) specified: build

 

build:

 

      [csc] Compiling 0 files to C:\test\helloworld.exe.

            fatal error CS2008: No inputs specified

 

BUILD FAILED

 

…….

 

The two files are as simple as they can be:

 

public class HelloWorld

{

  static void Main()

  {

    System.Console.WriteLine("Hello World!");

  }

}

 

 

<?xml version="1.0"?>

 

<project

  name="helloworld"

  default="build">

 

  <target name="build">

    <csc

      target="exe"

      output="helloworld.exe">

      <sources>

        <include name="helloworld.cs" />

      </sources>

    </csc>

  </target>

 

</project>

 

 

 

 

As its so simple and failing – Im stuck for an answer… in verbose mode I get:

 

build:

 

      [csc] Compiling 0 files to C:\test\helloworld.exe.

      [csc] Contents of C:\DOCUME~1\charltc\LOCALS~1\Temp\tmpB32.tmp.

/fullpaths

/nologo

"/target:exe"

"/out:C:\test\helloworld.exe"

 

      [csc] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe (@"C:

\DOCUME~1\charltc\LOCALS~1\Temp\tmpB32.tmp")' in 'C:\test'

            fatal error CS2008: No inputs specified

 

BUILD FAILED

 

 

Reply via email to