Mono GTK on Windows

 I'd like to use visual studio but visual code with mono.exe on the side is what I'm currently doing. I'm able to get WinForms to work however I'm running into difficult trying to run GTK on windows. 

Unhelp Q/A - https://stackoverflow.com/questions/51132090/mono-compliling-gtk-on-windows

its unhelp because I already have the complier working and referencing the package properly. Its just windows doesnt pick up GTK inorder to run it.

https://stackoverflow.com/questions/51132090/mono-compliling-gtk-on-windows

Possible Solution

https://stackoverflow.com/questions/16417342/mono-gtk-hello-world-deploy-to-windows

GTK Notes https://www.mono-project.com/docs/gui/gtksharp/beginners-guide/

mcs -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\gtk-sharp.dll" -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\glib-sharp.dll" -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\atk-sharp.dll" hello.cs

mono hello.exe

Unhandled Exception:

System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.

File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'

  at Hello.Main (System.String[] args) [0x00025] in <a9f38d8e9ce94215a3a5584c8f71bfcc>:0

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.

File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'

  at Hello.Main (System.String[] args) [0x00025] in <a9f38d8e9ce94215a3a5584c8f71bfcc>:0


Useless issue ticket without any solution

https://github.com/mono/mono/issues/9582 <-- and this is where we are at...


https://github.com/mono/mono/issues/8144 <-- this is where they still are..

Register the dll? https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-register-dll-files-in-a-windows-10-64-bit/27429279-61ff-463b-bb77-3f30be2954ba

For now I'm holding off on this project because a number of issues with the Mono team not really supporting windows and the half support for it is out dates. I would like to see this work but I imagine something is around the corner which would explain the lack of support. Something within Xamarin maybe.

https://www.youtube.com/watch?v=yq0dSkA1vpM

https://github.com/mono/xwt

Popular posts from this blog

Installing Windows on Acer chromebook 15 cb3-532

Entity Framework: ToListAynsc & WhereAsync

NLog 4.6.2 Console Application