MSB8012

本文介绍MSB8012错误代码。

消息文本

MSB8012: TargetPath (*target-path*) does not match the Linker/Library OutputFile property value (*output-file-path*). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(link/lib.OutputFile).

DESCRIPTION

当指定的生成属性不存在时,会发生此错误。 传递给链接器或库工具的目标路径、文件名或文件扩展名与预期值不匹配。

决议

确保项目编译器和链接器属性中的指定属性匹配。 有关详细信息,请参阅 “常规”属性页(项目)链接器属性页

适用于

MSBuild 的所有版本