I'm stumped on how to get a mono build of a C# project with NAnt. I'm using
the 0.90 build.
The problem seems to be that NAnt isn't passing the reference assemblies
through to gmcs.
Attempting to building the following file with NAnt results in the error:
[csc] C:\Temp\HelloMono\hello.cs(3,14): error CS0234: The type or namespace
name `Windows' does not exist in the namespace `System'. Are you missing an
assembly reference?
using System;
using System.Windows.Forms;
public class HelloWorld : Form
{
static public void Main ()
{
Application.Run (new HelloWorld ());
}
public HelloWorld ()
{
Text = "Hello Mono World";
}
}
I've spent a few hours poking around in Nant.exe.config and have found that
it doesn't seem to be using the reference-assemblies. Regardless of how
those are set, only a magical subset of references are found. Part of the
subset include System and System.Web.
I've also found that there are two framework sections for the mono-3.5
profile in the 0.90 build.
Any help would be greatly appreciated.
---
X
Continuous improvement is better than delayed perfection. - Mark Twain
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users