Note that there are some explanatory texts on larger screens.

plurals
  1. POmkbundle and GTK#
    text
    copied!<p>I'm trying to use mkbundle so that I can distribute a GTK# application without users needing to install .NET/Mono or GTK#. I've successfully bundled an application which uses winforms, but for some reason when I do the same with a GTK# application it won't work. </p> <p>This is what I get out of cygwin: </p> <p><code>$ mkbundle --deps a.exe OS is: Windows Sources: 1 Auto-dependencies: True</code> </p> <blockquote> <p>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp' or one of its dependencies. The system cannot find the file specified.<br> File name: 'gtk-sharp'<br> at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00000] in :0<br> at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence)<br> at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in :0<br> at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName)<br> at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in :0<br> at MakeBundle.QueueAssembly (System.Collections.ArrayList files, System.String codebase) [0x00000] in :0<br> at MakeBundle.Main (System.String[] args) [0x00000] in :0<br> [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp' or one of its dependencies. The system cannot find the file specified.<br> File name: 'gtk-sharp'<br> at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00000] in :0<br> at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence)<br> at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in :0<br> at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName)<br> at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in :0<br> at MakeBundle.QueueAssembly (System.Collections.ArrayList files, System.String codebase) [0x00000] in :0<br> at MakeBundle.Main (System.String[] args) [0x00000] in :0`</p> </blockquote> <p>But yet I have /cygdrive/c/GtkSharp/2.12/lib in my PATH variable. I can check this, as if I type "gtk-sharp.dll" into cygwin I get the following returned: </p> <p><code>$ gtk-sharp.dll bash: /cygdrive/c/GtkSharp/2.12/lib/gtk-sharp-2.0/gtk-sharp.dll: cannot execute binary file</code> </p> <p>So it should be able to find the file! </p> <p>Any help would be much appreciated. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload