Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 3843 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
When I build gtk# app (simple test app) on Linux with the default configuration, the .exe generated will not run on Windows even with gtk-sharp installed.
I debugged this using Visual Studio 2010 and it told me it was trying to link to Mono.Posix, which was not on the target system, because it did not have mono specifically installed on it - just .net 4.0 and gtk#.
If I build in Monodevelop on Windows, it runs on any platform without requiring Mono.Posix.
If I disabled the opton on Linux Monodevelop called "Enable gettext support" under GTK# settings under project settings, the generated code will run on Linux or Windows without issue.
It's odd that i do not need to disable "Enable gettext support" in Windows MonoDevelop to accomplish the same thing. Leaving it enabled in Windows doesn't result in any problems.
Linux Mono Version: 188.8.131.52 (Ubuntu test version)
Windows Mono Version: 184.108.40.206 (Windows 7)
Oops "Mono version" should read MonoDevelop version Sorry.
This is because GTK# on Linux ships with Mono.Posix 2.0. When compiling with Mono and targeting 4.0 framework, Mono "upgrades" the reference to Mono.Posix 4.0, which is identical except for the version number (due to a historical bad decision).
We really should ship Mono.Posix 4.0 with GTK# on Windows to fix these issues.
I've opened a pull request that fixes this issue: https://github.com/mono/gtk-sharp/pull/115.