web analytics
Deplying a class library to GAC in the Visual Studio Options
codeling
Posted: Friday, January 22, 2016 1:42:20 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 771
Points: 3240

To deploy a class library to the GAC in Visual Studio, perform the following:

1.Open the project Properties and go to Build events.

2.Set the Pre-build event command line to:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\gacutil.exe" /u $(TargetName)

3.Set the Post-build event command line to:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\gacutil.exe" /i $(TargetPath)

When you compile a new version, before building the project, the existing Web Part will be removed from GAC. Then, once the build is successful, the new Web Part will be installed.

Sponsor
Posted: Friday, January 22, 2016 1:42:20 PM
 
codeling
Posted: Monday, March 13, 2017 1:41:51 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 771
Points: 3240

The following command is used to search an assembly in the GAC.

gacutil /l | findstr aseembly-name

For example,

gacutil /l | findstr Oracle.DataAccess

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.