Skip to content

Instantly share code, notes, and snippets.

@raducugheorghe
Last active June 15, 2017 15:46
Show Gist options
  • Save raducugheorghe/f28d928c9c2283b971a7 to your computer and use it in GitHub Desktop.
Save raducugheorghe/f28d928c9c2283b971a7 to your computer and use it in GitHub Desktop.
Install all dll-s in curent folder to GAC
[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