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