visual-studio - VS2005 : Assembly '<assembly>' is incorrectly specified as a file.

标签 visual-studio visual-studio-2005 build assemblies log4net

我已在我的项目中添加了对 log4net 程序集 dll 的引用。

当我构建时,我收到一条警告:

Warning Assembly 'Lib\log4net.dll' is incorrectly specified as a file.

我查了help for this error on 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.

这正是我正在做的;文件引用一个程序集。我在这里被告知什么?

如何添加对程序集 dll 的引用,而不添加对程序集 dll 的引用?

最佳答案

尝试将源 DLL 的 Build Action 属性设置为 None。它为我们解决了这个问题。

关于visual-studio - VS2005 : Assembly '<assembly>' is incorrectly specified as a file.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/436471/

相关文章:

c++ - CMake 的默认构建目标的名称是什么?

java - Sonar 项目与 Sonar 模块( Sonar 项目的一部分)

c# - 让winforms应用程序在其他计算机上运行

c# - 全尺寸 Silverlight 应用程序尺寸

javascript - 实时预览与代码扩展

c# - Visual Studio 调试器不会加载文件名中带有 `(反引号)的文件中的符号。谁能解释一下?

c++ - 如果我不使用 to_string 或 from_string,为什么我需要在 boost 中编译 DateTime?

sharepoint - 为什么在我的项目中复制了 Microsoft.SharePoint.Search.dll?

visual-studio - Visual Studio : Where is IntelliSense in the Immediate Window?

c++ - 在没有控制台的情况下看到控制台输出?