[Mono-winforms-list] Wine packages for doingSystem.Windows.Forms development

Miguel de Icaza miguel@ximian.com
29 Jul 2003 13:21:46 -0400


> I already asked about this issue on IRC but I was wondering if it would
> be possible to make mono (or the System.Windows.Forms-assemblies loader
> -I have not checked how it actually works-) look for an environment
> variable or an option. This would make it possible for the user to
> choose which implementation he or she wants to use.
> For example
> export MONO_SWF_LIB="WineLib"
> mono Form1.exe
> export MONO_SWF_LIB="Gtk"
> mono Form1.exe

I was thinking about this: maybe the runtime should have a mechanism
for picking up assemblies based on this.  This is a discussion that we
should address in more detail on mono-devel and plan.

In the meantime, I think that you could use MONO_PATH creatively and
some aliases, for example:

	mkdir /winforms/wine
	mv /usr/local/lib/System.Windows.Forms.dll /winforms/wine

	mkdir /winforms/gtk
	cp mcs/class/System.Windows.Forms/Gtk/*dll /winforms/gtk

And then use:

	alias wmono='MONO_PATH=/winforms/wine mono'
	alias gmono='MONO_PATH=/winforms/gtk mono'

Then you can switch between those two like this:

	wmono test.exe
	gmono test.exe