Copied from bug 2981389
In addition you also might check "CompilerBase.cs".
Currently output dir must be created in advance. If not, a simple <csc>
task will fail
Need to investigate the nature of this issue and whether it is also inconsistent with the other tasks.
With the attached test-project.zip, I was able to recreate the problem. Basically when the specified output path includes non-existing directories, the task will fail. Instead to make the task more user firendly, the first step should automatically the directories automatically, then to allow the output binaries to be created.
<project name="Hello World">
<csc target="exe" output="bin\HelloWorld.exe" debug="true">
<!-- do not report warnings for missing XML comments -->
<warning number="0519" />
<include name="*.cs" />
<include name="System.dll" />
<include name="System.Data.dll" />
NAnt 0.90 (Build 0.90.3742.0; alpha1; 3/31/2010)
Copyright (C) 2001-2010 Gerry Shaw
Target framework: Microsoft .NET Framework 2.0
[csc] Compiling 1 files to 'C:\cygwin\home\admin\nant\scratch\bin\HelloWorld.exe'.
[csc] warning CS1691: '0519' is not a valid warning number
[csc] fatal error CS0042: Unexpected error creating debug information file 'c:\cygwin\home\admin\nant\scratch\bin\
c:\cygwin\home\admin\nant\scratch\bin\HelloWorld.pdb: The system cannot find the path specified.
External Program Failed: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1)
Total time: 0.6 seconds.
Checked into CVS.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.