Windows Server 2012 安装dll到GAC

时间:2015-11-02 17:13:57   收藏:0   阅读:1716

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

 

原文:http://www.cnblogs.com/rash/p/4930301.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!