Pls help me with this Mono problem

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
6/5/2008 2:43:28 AM
Gravatar
Total Posts 1

Pls help me with this Mono problem

i am trying to run a file called "Program.cs" using Mono in Ubuntu 7.04.

Here is the Program.cs content:-

using System;

using System.Collections.Generic;

using System.Windows.Forms;

 

namespace ECamTools {

static class Program {

/// <summary>

/// Der Haupteinstiegspunkt für die Anwendung.

/// </summary>

[STAThread]

static void Main(string[] args) {

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(fals e);

Application.Run(new ECamViewer(args));

}

}

}

 

after typing "mcs Program.cs", i get this error:-

Program.cs(2,7): error CS0234: The type or namespace name `Generic' does not exist in the namespace `System.Collections'. Are you missing an assembly reference?
Program.cs(2,1): error CS0246: The type or namespace name `Collections.Generic' could not be found. Are you missing a using directive or an assembly reference?
Program.cs(3,7): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Program.cs(3,1): error CS0246: The type or namespace name `Windows.Forms' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 4 error(s), 0 warnings


From my intepretation, the errors are all based on the libraries.
What is wrong?

Pls help.

TQ

6/5/2008 6:33:38 AM
Gravatar
Total Posts 18439

Re: Pls help me with this Mono problem

Hi,

This forum is for discussing use of mojoPortal on Linux/Mono, not for general Mono issues.

You should post your question in the Mono Forums on the Mono site.

Joe

You must sign in to post in the forums. This thread is closed to new posts.