Created
December 22, 2016 05:17
-
-
Save asadrefai/30a8aeffd3cc81f1b5948cf86833ccef to your computer and use it in GitHub Desktop.
Add dll in GAC using PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Note that you should be running PowerShell as an Administrator | |
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") | |
$publish = New-Object System.EnterpriseServices.Internal.Publish | |
$publish.GacInstall("C:\Path\To\DLL.dll") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment