c# - Visual Studio 2010 程序集引用

标签 c# .net visual-studio-2010 devexpress projects-and-solutions

我在计算机上有一个项目,其中安装了用于 win 表单的 devexpress 行。在 VS2010 中,我添加了对一些 devexpress .dll(s) 的引用,并将这些引用标记为“复制本地”并构建项目。然后我将一个包含项目的文件夹发送给另一个用户,该用户的机器上没有安装 devexpress。当他打开解决方案时,所有 devexpress 引用都显示为已损坏且程序集无法编译。

输出如下:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): 
warning MSB3245: Could not resolve this reference. Could not locate the assembly
 "DevExpress.Data.v13.1, Version=13.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a". 
Check to make sure the assembly exists on disk. 
If this reference is required by your code, you may get compilation errors.

如何正确添加对程序集的引用,以便我可以在没有安装此类 .dll(s) 的机器上打开它?

最佳答案

“复制本地”选项是在构建过程后将文件复制到发布的目录。

您可以将这些 dll 包含在单独的解决方案文件夹中,将 VisualStudio 引用到它们并将此文件夹与解决方案一起提交给 svn 或 tfs。

关于c# - Visual Studio 2010 程序集引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21017141/

相关文章:

c# - 使用 Fluent NHibernate 映射大字符串

c# - 处理 @HTML.Label 的 lambda

c# - 从 VS 2005 转换到 VS 2008 后,更新面板不起作用

c# - "Edits were made which cannot be compiled"。在 vs2010 中选中零错误和启用并编辑并继续

c# - 为什么实现变体接口(interface)的类保持不变?

c# - 遍历对象自己的字符串并修剪每个字符串

c# - 数据 View 和数据表有什么区别?

c# - 我能否在 Visual Studio 中刷新 XML 注释以反射(reflect)已更改的参数?

c# - WPF:创建一个看起来像 Visual Studio 2010 的应用程序

c# - 将2个数据表转换为一个表