2012-01-07 128 views
1

我有一個Visual Studio 2007的項目,我成功地與2010年。它說,它成功地建立VS升級,但在項目的默認構建設置導致「打造成功」的消息,有2個警告,狀態:如何在Visual Studio 2010中使用項目的默認構建設置?

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): 
warning MSB8012: TargetPath(C:\MaxSDK-5.1.7\examples\plussz\.\..\..\sdk-build\plussz.dll) 
does not match the Linker's OutputFile property value (C:\MaxSDK-5.1.7\sdk-build\plussz.mxe). 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). 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile property value (.mxe). 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). 

並且文件從不出現。此外,它試圖構建的文件具有擴展名.DLL,但它應該具有.mxo。

凡是允許我建立這個東西是一個很大的幫助,但我真正想要做的是輸出到項目文件夾(其中源),而不是我的用戶文件夾中。我假設這個項目有一些預先建立的設置。有沒有什麼方法可以使用這些,而不是全局變量visual studio使用?

回答

2

我聽起來像項目轉換並不是那麼成功。 VS2007?真?

您應該可以通過更改項目屬性來解決此問題。

在Visual Studio中,右鍵單擊Solution Explorer中的項目並選擇Properties
您可能想在配置下拉列表中選擇All Configurations
單擊配置屬性部分中的General
集 「輸出目錄」 來:$(SolutionDir)$(配置)\
集 「中間目錄」 來:$(配置)\
集 「目標擴展」 到:.mxo
在「接頭 - > General「部分:
將」輸出文件「設置爲:$(OutDir)$(TargetName)$(TargetExt)

希望這會有所幫助。

+0

它實際工作正常,我只是沒有看到它。感謝壽。 – jamesson 2012-01-08 02:14:01

相關問題