# [Gtk-sharp-list] how to add a gtk# reference in Visual Studio?

Grant Birchmeier grant at grantb.net
Thu Mar 6 22:54:15 UTC 2014

```Adding the libraries to the GAC manually (with "gacutil -i") seems to get
VS to recognize that the libs are available.

libs, such as glibsharpglue-2.dll.  I can add that one too, of course, but
I wonder if I'm getting into a game of whack-a-mole.  How many more are
there gonna be?

On Thu, Mar 6, 2014 at 2:29 AM, scocpt <tottlecp at cardiff.ac.uk> wrote:

> Hi,
>
> As far as I can tell, both Mono and GTK# install their libraries in self
> contained directories, so that you are able to run multiple versions on the
> same machine.
>
> As an example my GTK# stuff can be found (as an example):
> C:\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\atk-sharp.dll
>
> I had the same issues with Visual Studio not automatically finding the dlls
> (because they are not in the .NET gac).
>
> A nice work around to this is either use MonoDevelop or SharpDevlop and
> they
> find all the Mono stuff automatically for you.
>
> Be aware when you are compiling your code to keep your project as x86 (32
> bit), as there dose not seem to be any 64 bit versions of GTK# for Windows
> (per-complied).
>
> Hope this helps,
> Chris
>
>
>
> --
> View this message in context: