views:

259

answers:

4

I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache?

If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Thanks!

A: 

Open Windows Explorer (WindowsKey+E). Go to c:\windows\assembly. Open a second explorer window and drag and drop your assembly to the first window.

Darin Dimitrov
A: 
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe" /i "strongnamed.dll" /f /nologo
Rubens Farias
+1  A: 

Very simple: Start-> Programs-> Microsoft Visual Studio 2005/2008 -> Visul Studio Tools -> Visula Studio 2005/2008 commadn prompt

a cmd appears, where you can type gacutil.

It also shows you the path where it resides:

C:\Program Files\Microsoft Visual Studio 9.0\VC> on my computer.

Vitaliy
A: 

You can put it in the GAC but unless you have access to the private key with which it was originally signed, the installed program(s) will not recognize it.

Henk Holterman
I'm assuming the "private key" is different from the "public key token." So is there any way to make my "custom" dll useable in the program?
Ben McCormack
I'm afraid not, what you want to do is something the signing was designed to prevent.
Henk Holterman
That makes sense. It's still frustrating. I'll keep digging for the correct way to do this.
Ben McCormack