Hello World!

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")

 

posted @ 2015-11-02 15:34  世界万物  阅读(573)  评论(0编辑  收藏  举报
Bye World!