VS2005:大会'&LT;装配&GT;'被错误地指定为一个文件 [英] 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上这个错误的帮助,它说:
i look up the help for this error on MSDN, and it says:
时生成此警告
应用程序清单时产生
构建过程中检测到的文件
参考实际上是一个(或管理
本机)组装的
这正是我在做什么;文件引用的是的组装。我究竟在这里被告知?
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:大会'&LT;装配&GT;'被错误地指定为一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!