warning MSB8012 的問題解決(vs2013 )

在使用中警告提示信息爲:

warning MSB8012: TargetPath(D:\work\code\xxxx\Debug\xxxx.exe) does not match the Linker's OutputFile property value (c:\ccc\xxxx.exe). 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.OutputFile)。

其實就是和warning中提示的一樣,在"項目->屬性->配置屬性->常規"選項卡下的“目標文件名”選項,和“項目->屬性->配置屬性->鏈接器->常規”選項卡下的“輸出文件”選項,不一致,所以造成了輸出文件命名上的矛盾,從而產生該warning。

這個問題通常是由於項目的設置引起的

修改 項目屬性->常規->輸出目錄   與 鏈接器->常規->輸出文件 保持一致即可。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章