Open objorke opened 6 years ago
The PR addresses this issue. Note that there is no support for gtksharp3 on Windows.
I tried to run the gtk#3 examples on OSX, but get a libgtk-3.0.dylib exception - does this mean that GTK3 is not installed? What is the simplest way to test the gtk#3 demos?
Can the gtk#3 demos only be built for x86?
I don't know what is the exact cause of the dylib exception, but I don't think that it is an x86/x64 issue. My approach would be
Other than that I would not know.
The problems seems to be that both GtkSharpDemo and GtkSharpDemo3 write their binaries and dependencies to the same folder. This then includes gtk-sharp.dll etc.
When Demo3 is running after Demo has been built, it can't load the correct version of gtk-sharp.dll and vice versa. The solution is, I think, to split the two demo projects into their own folders. The same applies for OxyPlot.GtkSharp and OxyPlot.GtkSharp3. These now share the same packages.config file, whereas OxyPlot.GtkSharp3 needs the gtk-sharp-3 nuget package and OxyPlot.GtkSharp does not.
I'm happy to refactor this and create a pull request.