unable to run mgcb-editor in Debian

I’m trying to run the mgcb-editor in Debian, but I keep getting this error:

Unhandled exception. System.TypeInitializationException: The type initializer for 'Gtk.Application' threw an exception.
 ---> System.DllNotFoundException: Gtk: libgtk-3-0.dll, libgtk-3.so.0, libgtk-3.0.dylib, gtk-3.dll
   at GLibrary.Load(Library library)
   at Gtk.Application..cctor()
   --- End of inner exception stack trace ---
   at Gtk.Application.InitCheck(String progname, String[]& args)
   at Eto.GtkSharp.Helper.Init()
   at Eto.GtkSharp.Forms.ApplicationHandler.Initialize()
   at Eto.WidgetHandler`1.Eto.Widget.IHandler.Initialize()
   at Eto.Widget.Initialize()
   at Eto.Widget..ctor()
   at Eto.Forms.Application..ctor(InitHelper init)
   at Eto.Forms.Application..ctor(Platform platform)
   at Eto.Forms.Application..ctor(String platformType)
   at MonoGame.Tools.Pipeline.Program.Main(String[] args) in /home/runner/work/MonoGame/MonoGame/Tools/MonoGame.Content.Builder.Editor/Program.cs:line 27

Does anyone know how to fix this?

What i have tried

  • Reinstalling the templates
  • following this guide
  • Compiling from source
  • uninstalling and reinstalling dotnet

Hi @Kaifungamedev
I responded to you on the GItHub issue you opened, but I’ll respond here as well.

This looks like it’s trying to find the GTK3 stuff on your system but is unable to locate it.

Can you try ensuring you have it installed

sudo apt install libgtk-3-0

Then see if that resolves the issue?