是最好注册dll到GAC或引用他们从bin文件夹在ASP.NET [英] is it better to register dll's to GAC or reference them from bin folder in ASP.NET

查看:191
本文介绍了是最好注册dll到GAC或引用他们从bin文件夹在ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果答案是它依赖,您能提供一个简短的解释为什么?

and if the answer is "it depends", could you provide a short explanation why ?

推荐答案

GAC包含跨多个应用程序共享的程序集。如果是这种情况,您应该强烈命名程序集并将其注册到GAC。

如果没有,请将程序集保留为专用程序集并将其引用为项目/ dll引用。

GAC is meant to contain assemblies that are shared across multiple applications. If that is the case, you should strong-name the assembly and register it with the GAC.
If not, keep the assembly as a private assembly and reference it as a project/dll reference.

PS:没有真正得到你的问题的bin文件夹的参考 - 哪个bin文件夹是这个?

PS: Didn't really get the reference from bin folder part of your question - which bin folder is this?

这篇关于是最好注册dll到GAC或引用他们从bin文件夹在ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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