包括GAC组件在Bin [英] Include GAC Assemblies in Bin

查看:134
本文介绍了包括GAC组件在Bin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何想法如何强制GAC DLL引用?

Any ideas how to force a GAC DLL into referenced?

这是我的问题,我不断使用注册到GAC的第三方DLL,以及何时我在我的项目中使用它,它从gac中读取,当我部署时,我总是忘记添加DLL,因为它不位于Bin / Referenced文件夹中。

Here is my issue, I constantly use a 3rd party DLL that registers itself into the GAC, and when I use it in my project, it reads it from the gac, and when I deploy, I'm always forgetting to add the DLLs since it is not located in the Bin/Referenced folder.

无论如何强制Visual Studio添加DLL而不是GAC?

Anyway to force Visual Studio to add the DLL instead of from GAC?

推荐答案

右键单击程序集引用,选择属性,并将将本地复制更改为true。这将导致它将程序集复制到部署目录

Right click on the assembly reference, select properties, and change "Copy Local" to true. That will cause it to copy the assembly into the deployment directory

这篇关于包括GAC组件在Bin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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