Last active
June 15, 2017 15:46
-
-
Save raducugheorghe/f28d928c9c2283b971a7 to your computer and use it in GitHub Desktop.
Install all dll-s in curent folder to GAC
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
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") | |
$publish = New-Object System.EnterpriseServices.Internal.Publish | |
foreach ($file in Get-ChildItem *.dll) { | |
echo $file.FullName | |
$publish.GacInstall($file.FullName) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment