visual-studio - VS2005 : Assembly '' is

我已在我的项目中添加了对 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/

相关文章:

tfs - 如何获取 TFS 构建状态通知?

android - 错误 :Execution failed for task ':android:

c# - 缺少调试目标?

build - 如何将 Autotools 项目转换为 CMake 项目?

javascript - 用于版本控制和缩小 javascript 的 Maven 插件

build - 从 make 文件中禁用 make 内置规则和变量

eclipse - 什么是最好的 Scala 构建系统?

ios - 使用没有代码设计的 xcodebuild 构建 iOS 应用程序

java - Eclipse 无法删除错误

xcode - 向 Xcode 添加了运行脚本阶段,但没有任何反应