Windows Server 2012 安装dll到GAC
使用Windows管理员打开PowerShell:
运行以下命令:
Set-location "c:\tools\gac"
[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")