A
A
Arei2013-03-23 22:56:45
GTK+
Arei, 2013-03-23 22:56:45

exe won't run on another computer (C# + Gtk#)?

I created a project in C # on Gtk #, it works on my PC, it does not start on the other, I placed the dll next to the exe.
How to run exe on another computer if Gtk# is not installed on it?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@ntkt, 2013-03-23
_

1) What exactly does the error look like?
2) The first step is to run depends on both PCs (http://www.dependencywalker.com/) and see if everything is ok with native dependencies.
3) Next, we deal with managed dependencies (the same depends, fuslogvw from http://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.71).aspx )

K
kasthack, 2013-03-24
@kasthack

>How to run the exe on another computer if Gtk# is not installed on it?
Pull the GTK# installer behind you. Because If you're working with GTK#, I'm going to assume that most of your clients are running Linux => all you need to do is add the dependencies in the packages.
Alternatively, you can build a bundle with all the necessary libraries via mono-mkbundle - this way you won't even need mono.
If you want a clean exe, without dependencies and heavy binary assemblies, then you can simply enable "copy local" in the properties of the link to the library.

A
Arei, 2013-03-24
@Arei

"copy locally" already did that, but unfortunately didn't help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question