如何安装DLL到GAC。 [英] How to install dll into GAC.

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

问题描述

我必须安装该DLL海关总署。我已签了同一个DLL是在GAC present有涉及到我的项目。难道我的步骤是否正确?

I have to install the DLL to GAC. I have checked that same DLL is present there in the GAC related to my project. Is my steps correct?

1:卸载previous DLL通过单击文件>卸载大会
2:打开Visual Studio命令提示符
3:键入此 C:\ WINDOWS \ Microsoft.NET \框架\ V1.1.4322>的Gacutil.exe \ I C:\某某\我的项目\ Projectxyz.dll

1: Uninstall the previous DLL by clicking on File > Uninstall Assembly
2: Open Visual Studio command prompt
3: Type this C:\Windows\Microsoft.NET\Framework\v1.1.4322> gacutil.exe \i C:\xyz\My project\Projectxyz.dll

拖动并从斌删除DLL到GAC?

Drag and drop the DLL from Bin to GAC ?

这是必须给予强有力的名称大会或我能避免吗?是什么,如果我不给强名称的副作用?

Is it mandatory to give the strong name to the assembly or can I avoid it? What is the side effect if I don't give the strong name?

推荐答案

要回答你的最后一个问题,上,您必须为它安装到GAC强命名程序集。

To answer your last question, yes, you must strong-name your assembly in order to install it into the GAC.

有个声音告诉我,你不真的需要你的程序集添加到GAC。只有在极少数情况下是有利于这样做。除非你知道这些情况,并知道它们适用于你,我建议你忘掉它。

Something tells me that you don't really need to add your assembly to the GAC. Only in very few cases is there a benefit to doing this. Unless you know what these cases are, and know they apply to you, I'd suggest you forget about it.

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

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