Bugs item #2985057, was opened at 2010-04-10 15:00 Message generated for change (Comment added) made by cchan_qa You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2985057&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Charles Chan (cchan_qa) Assigned to: Charles Chan (cchan_qa) Summary: <csc> Task output dir is not created automatically Initial Comment: 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 ---------------------------------------------------------------------- >Comment By: Charles Chan (cchan_qa) Date: 2010-04-12 05:20 Message: Fixed. src/NAnt.DotNet/Tasks/CompilerBase.cs tests/NAnt.DotNet/Tasks/CscTaskTest.cs tests/NAnt.DotNet/Tasks/JscTaskTest.cs tests/NAnt.DotNet/Tasks/VbcTaskTest.cs tests/NAnt.DotNet/Tasks/VjcTaskTest.cs Checked into CVS. ---------------------------------------------------------------------- Comment By: Charles Chan (cchan_qa) Date: 2010-04-11 22:37 Message: 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. test.build ----------- <?xml version="1.0"?> <project name="Hello World"> <csc target="exe" output="bin\HelloWorld.exe" debug="true"> <nowarn> <!-- do not report warnings for missing XML comments --> <warning number="0519" /> </nowarn> <sources> <include name="*.cs" /> </sources> <references> <include name="System.dll" /> <include name="System.Data.dll" /> </references> </csc> </project> Output ------- NAnt 0.90 (Build 0.90.3742.0; alpha1; 3/31/2010) Copyright (C) 2001-2010 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/cygwin/home/admin/nant/scratch/test.build 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. [csc] ' BUILD FAILED C:\cygwin\home\admin\nant\scratch\test.build(3,6): External Program Failed: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1) Total time: 0.6 seconds. ---------------------------------------------------------------------- Comment By: Charles Chan (cchan_qa) Date: 2010-04-10 15:01 Message: Need to investigate the nature of this issue and whether it is also inconsistent with the other tasks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2985057&group_id=31650 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers