Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi The following is how my NANT Build File looks like:
XML
<?xml version="1.0"?>
    <project name="nant" default="build" basedir=".">
         <description>nant build files.</description>
        <property name="debug" value="true" overwrite="false" />
        <target name="clean" description="remove all generated files">
            <delete file="nant.exe" fail ="false" />
            <delete file="nant.pdb" fail ="false" />
        </target>
        <target name="build" description="compiles the source code">
            <csc target="exe" output="nant.exe" debug="${debug}">
                <sources>
                    <include name="nant.cs" />
                </sources>
     </csc>
        </target>
    </project>

Everytime I try to run it, I get the following error message:


build:

[csc] Compiling 0 files to 'C:\websites\dnn492_9\nant.exe'.

[csc] fatal error CS2008: No inputs specified

BUILD FAILED

C:\websites\dnn492_9\nant.build(10,14):

External Program Failed: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1)

I need a feed back about my build file please.

Thanks so much for your support.
Posted
Updated 4-Apr-11 5:51am
v2

Looks like the script is not able to pick up the nant.cs file. Y
Make sure your file location is correctly specified.
 
Share this answer
 
Comments
Alex Ghassan 7-Apr-11 9:44am    
I agree with you and thanks so much for your help. However, I discoevered that NANT doesn't always work properly with DNN versions below 5.0
Abhinav S 7-Apr-11 12:03pm    
Nice. Thanks for posting the real solution.
:)
Just so if it helps any,
I also ran into the same error msg, but with an incorrect build file name specified in the arg to nant.exe

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900