VS2005:程序集'< assembly>'被错误地指定为文件. [英] VS2005: Assembly '<assembly>' is incorrectly specified as a file.
问题描述
我在项目中添加了对log4net程序集dll的引用.
I've added a reference to the log4net assembly dll to my project.
建造时,我会收到警告:
When I build I get a warning saying:
警告程序集"Lib \ log4net.dll"为 错误地指定为文件.
Warning Assembly 'Lib\log4net.dll' is incorrectly specified as a file.
我在关于MSDN上此错误的帮助中找到了,并显示:
此警告是在 何时生成应用清单 构建过程检测到文件 引用实际上是(托管或 本机)程序集.
This warning is generated during application manifest generation when the build process detects that a file reference is actually a (managed or native) assembly.
这正是我在做什么;文件引用是.我在这里被告知什么?
This is exactly what I'm doing; the file reference is an assembly. What am I being told here?
如何添加对程序集dll的引用,而不添加对程序集dll的引用?
How do I add a reference to an assembly dll, while not adding a reference to an assembly dll?
推荐答案
尝试将源DLL的生成操作"属性设置为无".它为我们解决了这个问题.
Try setting the Build Action property of the source DLLs to None. It solved the issue for us.
这篇关于VS2005:程序集'< assembly>'被错误地指定为文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!