When I use mcs's -target param from cmd line, I can pass a quoted path (necessary for that infernal space in Program Files). However, I can't get the same thing to work within NAnt. I have tried several combinations (see below), but can not get NAnt to pass the correct path to mcs. Any ideas or examples?

<target name="build">
<mcs target="library" output="CSharpTest.dll" debug="${debug}">
<!-- None of these args work. This one drops everything before the space, (can't find "Files/NUnit2.0/..." -->
<arg value="lib: &quot;C:/Program Files/NUnit2.0/bin&quot; " />
<!-- These give "Unhandled Exception: System.NotSupportedException: The given path's format is not supported." -->
<arg value="lib:'C:/Program Files/NUnit2.0/bin'" />
<arg value="lib:""C:/Program Files/NUnit2.0/bin"" " />
<arg value="lib:C:/Program Files/NUnit2.0/bin" />


<!-- I've even tried using XML's single quote capability -->
                <arg value='lib:"C:/Program Files/NUnit2.0/bin" ' />

<sources>
<includes name="CSharpTest.cs"/>
</sources>
<references>
<!-- can't get it to work from refs either -->
<includes name='"C:/Program Files/NUnit2.0/bin/NUnit.Framework.dll"'/>
</references>
</mcs>
</target>


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to