Gert Driesen wrote:
The <script> task was moved to the NAnt.MSNetTasks assembly, and this
assembly and its test assembly is currently only built if the .NET Framework
1.0 is installed on your system.

What's the reason for only building it on the 1.0 framework?
If I add a reference to the NAnt.Core dll, I can build it from within Visual Studio 2003 without warnings or errors.


We still need to figure out a way to have this assembly built on systems on
which any of the .NET Framework versions is available.  Currently, we have
no way to perform this check in a build file, and have NAnt target any of
these frameworks ...

NAnt.build, Lines 105 + 106: <!-- build Microsoft.NET specific task assemblies if we are on win32--> <if test="${nant.platform.win32 and framework::exists('net-1.0')}">

Wouldn't it be sufficient just to test for win32 platform?

If you want to test for .Net Framework, maybe one could nest the <if> elements.
<if test="${nant.platform.win32}">
<if test="${framework::exist('net-1.0')}">
<!-- do this -->
<if test="${framework::exist('net-1.1')}">
<!-- do that -->



------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to