Advertisement

05.30.2008 at 01:27PM PDT, ID: 23445924
[x]
Attachment Details

Installing Strong Named assembly in GAC using Post-Build Event

Asked by DigitalDan3 in .NET, Visual Basic Programming

Tags: Visual Studio 2008 VB.Net

I want my strong named assembly installed in the GAC using the post-build event in the compiler settings.
I can use the following command line listed below if I had VS 2005 installed however, I do not and Visual Studio 2008 does not contain the gacutil.exe.
"%programfile%\Micorsoft\Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -if $(TargetPath)

Is there a diffent way to do this in VS 2008?
I did find gacutil.exe in the following locations:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
C:\Windows\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\system32\dllcache

I entered in the command line for "C:\Windows\Microsoft.NET\Framework\v1.1.4322\gacutil.exe" -if $(TargetPath)  but it did not install it into the GAC.

I can drag the DLL in the Bin folder to the GAC and it installed it fine.
Start Free Trial
[+][-]05.30.2008 at 03:16PM PDT, ID: 21681791

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Visual Basic Programming
Tags: Visual Studio 2008 VB.Net
Sign Up Now!
Solution Provided By: dstanley9
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628