它是更好地注册的DLL到GAC或bin文件夹中引用它们的ASP.NET [英] is it better to register dll's to GAC or reference them from bin folder in ASP.NET

查看:165
本文介绍了它是更好地注册的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天全站免登陆