如何更改对本地的引用(从GAC到bin)(How to change reference to local ( from GAC to bin ))

编程入门 行业动态 更新时间:2024-10-26 20:33:15
如何更改对本地的引用(从GAC到bin)(How to change reference to local ( from GAC to bin ))

我有MS Chart控件和GAC参考。 我找到了它们(C:\ Program Files \ Microsoft Chart Controls \ Assemblies)

但是如何将GAC更改为本地副本(bin)以便与未安装VS的MS Chart控件的其他服务器进行比较。

我试图手动添加dll文件,但这是一个失败。 看起来我需要手动配置Web.Config。

更改

<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>

不知何故将它从GAC转移到bin,所以如何?

I've got MS Chart control and with a references to GAC. I found them ( C:\Program Files\Microsoft Chart Controls\Assemblies )

but how to change GAC to local copy (bin) for comparability with other servers without installed MS Chart control for VS .

I've tried to add dll files manually but that was a fail. It's looking like I need to config Web.Config manually.

change it

<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>

somehow to move it from GAC to bin , so How ?

最满意答案

在Visual Studio中的解决方案资源管理器(或VWD,如果使用快速版本)中,在“引用”下找到DLL。 右键单击它,然后选择“属性”。 将本地复制更改为True

如果您有Web站点项目而不是Web应用程序项目,则引用将直接位于Bin文件夹中。

In Solution Explorer in Visual Studio (or VWD, if you use the express version), find the DLL under References. Right-click it, and select Properties. Change Copy Local to True.

If you have a Web Site Project instead of a Web Application Project, the references will be directly in the Bin folder.

更多推荐

本文发布于:2023-08-04 16:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1418862.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何更改   GAC   bin   local   reference

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!