views:

2115

answers:

3

I just installed the new MonoDevelop Windows beta, but when trying to create a C# windows application the only option was GTK#. Since Mono supports WinForms, why is this not an option in MonoDevelop. I would like to not have the GTK# dependency in my applications.

+5  A: 

Althought Winforms is supported in mono since version 2.0, the WinForms designer is not usable yet in MonoDevelop, which could be the reason for the lack of a WinForms project in MonoDevelop

http://www.mono-project.com/WinForms_Designer

AFAIK, you should think of mono's support for winforms as a way to port existing winforms aplication to linux. If you want to make a cross-platform app from the ground up, you should use GTK#

Ricky AH
+3  A: 

Although there is no WinForms project template, you can write WinForms apps in MD on any of the platforms MD runs on.

Just create a new empty C# project and add a reference to System.Windows.Forms, then write your code, and build & run. Although there's no Winforms designer in MD, you'll have code completion for the Winforms types.

mhutch
We are using the System.Windows.Forms namespace as we already have our UIs built. For additional work in the UI we are using SharpDevelop, and then coding in MD.
dboarman
A: 

mono develop currently supports GTK# toolkit only. you can use sharpdevelop winforms designer and choose mono runtime environment for compling

JKS