Adding Assembly to Global Assembly Cache

G

Guest

I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
 
K

Kevin Spencer

Drag and drop the file to the \Windows\assembly "folder" (which is the GAC).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
 
C

Christopher Reed

Download and install the .NET 2.0 SDK and then use gacutil.exe for that to
put a 2.0 assembly into the GAC.
 
R

Richard Grimes [MVP]

Christopher said:
Download and install the .NET 2.0 SDK and then use gacutil.exe for
that to put a 2.0 assembly into the GAC.

gacutil is part of the framework, it is not part of the SDK. If the OP
has the framework on the target machine then gacutil *should* be
available.
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy
the assembly to the GAC?

Don't use gacutil 'from' VS2003 because it is for v1.1. VB.NET Express
is v2.0 and will produce v2.0 assemblies. In fact the gacutil you use is
not from VS2003, it is actually part of the v1.1 framework installed by
VS2003 (ie, if you remove VS2003 but leave .NET 1.1 you will still be
able to call gacutil). Similarly VB.NET Express installs v2.0 of the
framework and you should use gacutil from that.

Basically you have a PATH issue. The install of VB.NET Expess should (I
don't know for sure because I've not used it, but it *should*) give you
a batch file that will set up the paths, and it should give you a
console short cut that will create a console that has the paths set.
Basically you need to call gacutil from
%windir%\Microsoft.NET\Framework\v2.0.50727.

Richard
 
C

Christopher Reed

While GACUTIL was part of the framework for 1.x, GACUTIL is only available
in the SDK for 2.0. This is at least true on two of my computers.
 
G

Guest

I tried dragging and dropping and this did not work. I did download the SDK
2.0 and was able to run the gautil.exe and install the assembly successfully.
Thanks everyone for your help and suggestions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top