在GAC中安装程序集 [英] install assembly in gac

查看:150
本文介绍了在GAC中安装程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用gacutil.exe工具的情况下在GAC中安装程序集.有可能吗?

请帮忙.

谢谢.

How to install assembly in GAC without using gacutil.exe tool. Is it possible?

Please help.

Thank you.

推荐答案

使用System.EnterpriseServices.Internal.Publish.GacInstall: ^ ].

当然,要安装的程序集应使用强名称命名.

—SA
Use System.EnterpriseServices.Internal.Publish.GacInstall: http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.gacinstall%28v=VS.90%29.aspx[^].

The assembly to be installed should be strongly named, of course.

—SA


有三种方法可以将dll安装到GAC中-GacUtil,Windows安装程序和Mscorcfg.msc.
不建议使用Infact GacUtil安装生产程序集.应该使用Windows安装程序.

此处详细了解所有这三种方式. .com/en-us/library/dkkx7f79.aspx"target =" _ blank"title =" New Window> ^ ].
There are three ways to install a dll into GAC - GacUtil, windows installer and Mscorcfg.msc.
Infact GacUtil is not the recommended way to install production assemblies. Windows installers should be used.

Read more about all three ways here[^].


这篇关于在GAC中安装程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆