Windows Server 2012 安装dll到GAC

使用Windows管理员打开PowerShell:

运行以下命令:

Set-location "c: oolsgac"

[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:mydll.dll")

原文地址:https://www.cnblogs.com/rash/p/4930301.html