如何更改对本地的引用(从 GAC 到 bin)

发布于 2024-09-09 05:06:29 字数 424 浏览 1 评论 0原文

我有 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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁人与我共长歌 2024-09-16 05:06:29

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

如果您有网站项目而不是 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.

余生再见 2024-09-16 05:06:29
  1. 在您的解决方案中创建 DLL 的副本(解决方案项)。

  2. 在 BIN 文件夹中创建一个指向复制的 DLL 的 .refresh 文件,最好使用相对路径。

  3. 将 .refresh 文件添加到您的项目中(在 BIN 文件夹中)。

  4. 从 web.config 文件中删除对程序集的任何引用。

  1. Make a copy of the DLL in your solution (Solution items).

  2. Create a .refresh file in your BIN folder that points to your copied DLL, preferable using relative paths.

  3. Add the .refresh file to your project (in the BIN folder).

  4. Remove any references to the assembly from the web.config file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文