English 中文(简体)
Developing GUI projects with MonoDevelop on Snow Leopard
原标题:

I just installed MonoDevelop on my Mac (Snow Leopard). I m a .NET developer, but have no Mono experience.

I want to create a simple GUI app, but there doesn t seem to be a Gtk# 2.0 template under C#. There s one under VB.NET.

I ve installed the latest MonoTouch-enabled release (as I may want to try MonoTouch in the future).

Should I have a Gtk# 2.0 template under C#? If so, how can I install it?

Is Gtk# 2.0 the best option for MonoDevelop GUI apps, anyway?

UPDATE

I also get errors when attempting to open either of the Moonlight templates.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: path2
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000]      
  at MonoDevelop.Projects.DotNetProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, System.Xml.XmlElement projectOptions) [0x00254] in /Users/michael/Mono/md-release/main/src/core/MonoDevelop.Projects/MonoDevelop.Projects/DotNetProject.cs:144 
  at MonoDevelop.Moonlight.MoonlightProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00000] in /Users/michael/Mono/md-release/main/src/addins/MonoDevelop.Moonlight/AssemblyInfo.cs:1 
最佳回答

GTK# is probably the best/easiest cross-platform toolkit right now, though Qt/Qyoto might be worthwhile if you can get the bindings to work.

The GTK# templates are not included in Mac, because they re part of the GTK# designer addin, and the GTK# designer doesn t work on Mac yet. However, you can create a new project and reference the GTK# assemblies, and write code by hand.

The Moonlight issue was fixed in SVN, and the next public build should work.

问题回答

I suggest you to report your problem on the project s mailing list. You will be in contact with developer that can tell you what to try to identify the problem or if the problem is known.





相关问题
What are some things Mono is not a good fit for?

I ve started your typical web project from scratch using the Mono platform. You know, web services, a UI, MySQL database, all that. I ve heard around the net that it s not a picture-perfect ...

How Reliable is Mono on Linux vs .NET on Windows?

I am trying to decide upon using Mono with C# or Python (Django) for a Linux based Web Site. My concern with C# is that Mono may not be as reliable as .NET. Does anyone have any experience with this?

System.Data in Mono

Has System.Data in Mono been expanded to include extra functionality? I m attempting to make use of the SQL Parser written for Mono in Mono.Data.SqlExpressions but when all the classes in the ...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to look up an icon for. Is there a GNOME C# API function which ...

ASP.NET MVC 2 on mono

Is it possible to run the new ASP.NET MVC 2 Preview 2 on mono?

热门标签