Thought I'd test out Mono and it wasn't a very good experience, at all.
Running Fedora 8 (x86_64), installed MonoDevelop and dependencies, of course. I've googled this thing to death and other people seem to be running into the exact same issues, but nobody wants to post a solution.
Here's one that really baffles me... Created a new GTK# project which is supposed to open an empty window and that's all. Well it doesn't even compile.
The type or namespace name `Gtk' could not be found. Are you missing a using directive or an assembly reference?(CS0246)
Project gtk-sharp and gtk-sharp2 are installed and "gtk-sharp" included in project references. (I've also tried setting the runtime version to both 1.1 and 2.0)
$ gacutil -l | grep gtk-sharp
gtk-sharp, Version=188.8.131.52, Culture=neutral, PublicKeyToken=35e10195dab3c99f
gtk-sharp, Version=184.108.40.206, Culture=neutral, PublicKeyToken=35e10195dab3c99f
policy.2.4.gtk-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
policy.2.6.gtk-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
policy.2.8.gtk-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
Not even sure where to go from here...
Second one is that WinForms applications compile, but die at runtime.
public class Program
public static void Main()
Form form = new Form();
and when executed
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Form ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x0006c] in /builddir/build/BUILD/mono-220.127.116.11/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:107 --- End of inner exception stack trace ---
... [not important long part removed]
at <0x00000> <unknown method>
at WinFormsTest.Program.Main () [0x00000] in /home/serguei/Projects/WinFormsTest/WinFormsTest/Program.cs:11
I've read that rerunning ldconfig fixes this problem, but it's been cached the whole time
$ /sbin/ldconfig -p | grep gdiplus
libgdiplus.so.0 (libc6,x86-64) => /usr/lib64/libgdiplus.so.0
libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0
I reinstalled Mono and MonoDevelop twice from Fedora's repository now so it's probably not a broken installation. Any ideas on how to proceed here??