Skip to content

Instantly share code, notes, and snippets.

@gregorypilar
Created January 16, 2021 22:42
Show Gist options
  • Save gregorypilar/2b3d738e991e8236d8fcaaf51d66e2cd to your computer and use it in GitHub Desktop.
Save gregorypilar/2b3d738e991e8236d8fcaaf51d66e2cd to your computer and use it in GitHub Desktop.
#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("Newtonsoft.Json.dll")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment