修改檔案輸出目錄後,提示配置錯誤(VS2010)

2021-07-22 06:53:56 字數 923 閱讀 8967

問題:c:\program files (x86)\msbuild\microsoft.cpp\v4.0\microsoft.cppbuild.targets(990,5): warning msb8012: targetpath(e:\workpro\misintubation\debug\misintubationui.exe) 與 linker 的 outputfile 屬性值(e:\workpro\misintubation\dist\misintubationui.exe)不匹配。這可能導致專案生成不正確。若要更正此問題,請確保 $(outdir)、$(targetname) 和 $(targetext) 屬性值與 %(link.outputfile) 中指定的值匹配。

解決方案:

修改配置方案:專案->屬性,將 「配置屬性「 下的 「常規」 中 「輸出目錄」 和 「中間目錄」的屬性值修改為鏈結器下的常規中輸出檔案的目錄,注意斜槓不能少。

問題:如果編譯成功,但提示無法啟動程式,前提是修改了輸出檔案的目錄。

解決方案::專案->屬性,將 「配置屬性」 下的 「除錯」 中的 」命令「  的值改為和 」鏈結器「 中 」輸出檔案的值「。

修改檔案輸出目錄後,提示配置錯誤(VS2010)

問題 c program files x86 msbuild microsoft.cpp v4.0 microsoft.cppbuild.targets 990,5 warning msb8012 targetpath e workpro misintubation debug misintubat...

mysql修改配置檔案後的啟動錯誤

修改完mysql配置檔案後,重新啟動報錯 starting mysql.error the server quit without updating pid file usr local mysql var izbp1b0a77gz.pid 連線mysql的時候報錯 error 2002 hy000...

修改檔案目錄後,程式執行異常

最近在寫測試工具時,需要修改檔名,因此用到了 os.chdir 方法來切換到預設路徑,但是修改檔案目錄後,程式執行異常,報錯 can t convert nonetype object to str implicitly def open log dir self,result log log 重新...