本文說明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).
說明
當指定的組建屬性不存在時,就會發生此錯誤。 傳遞至連結器或連結庫工具的目標路徑、檔名或擴展名不符合預期的值。
解決辦法
請確定項目編譯程式和連結器屬性中的指定屬性相符。 如需詳細資訊,請參閱 一般屬性頁(專案) 和 Linker 屬性頁。
適用對象
MSBuild 的所有版本