我們剛剛開始在構建系統上發出警告,最終導致構建失敗。如果我構建在VS2005 IDE中,構建工作正常。ResolveVCProjectOutput failure
的錯誤似乎歸結爲以下錯誤:
Task "ResolveVCProjectOutput" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
我試圖建立在釋放模式,但似乎ResolveVCProjectOutput只能處理調試模式。
我在使用msbuild在VS2005的64位機器上構建Win32。
如果它是相關的,這裏更多的是構建輸出的位:
Task "Delete"
Deleting file "D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\RetargetingPlugins\Install\XSIRetargetInstallerWindows\XSIRetargetInstallerWindows.tmp_Release_Win32.vcproj".
Command:
del "D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\RetargetingPlugins\Install\XSIRetargetInstallerWindows\XSIRetargetInstallerWindows.tmp_Release_Win32.vcproj"
Done executing task "Delete".
Done building target "XSIRetargetInstallerWindows" in project "Slave.sln".
Target "MotionBuilderRetargetInstallerWindows" skipped. Previously built successfully.
Target "MayaRetargetInstallerWindows" skipped. Previously built successfully.
Target "MaxRetargetInstaller" skipped. Previously built successfully.
Target "RetargetingPluginsDeploymentWindows" in file "D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\Slave.sln":
Task "ResolveVCProjectOutput" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "CreateItem"
Done executing task "CreateItem".
Task "ResolveVCProjectOutput" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "CreateItem"
Done executing task "CreateItem".
Task "ResolveVCProjectOutput" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "CreateItem"
Done executing task "CreateItem".
Task "ResolveVCProjectOutput" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "CreateItem"
Done executing task "CreateItem".
Task "CreateTemporaryVCProject" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "VCBuild" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "Delete" skipped, due to false condition; (('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Win32')) was evaluated as (('Release' == 'Debug') and ('Win32' == 'Win32')).
Task "ResolveVCProjectOutput"
Resolving VC project reference "D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\RetargetingPlugins\Install\XSIRetargetInstallerWindows\XSIRetargetInstallerWindows.vcproj".
D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\Slave.sln : warning MSB3422: Failed to retrieve VC project information through the VC project engine object model. Unable to determine default tool for the specified file configuration.
D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\Slave.sln : warning MSB3425: Could not resolve VC project reference "D:\Farm\MSVC80\Builds\RetargetingPluginsDeploymentWindows\RetargetingPlugins\Install\XSIRetargetInstallerWindows\XSIRetargetInstallerWindows.vcproj".
Done executing task "ResolveVCProjectOutput".
您是否考慮過使用屬性表來定義構建輸出和項目目錄?你也可以通過命令行通過調用devenv.exe來構建視覺工作室,這是我在我的各種C++解決方案和安裝的C#構建程序的自動構建中最終使用的。 – AJG85 2011-03-16 17:55:01
神祕,該目標沒有檢查$(配置)的條件。有人在該機器上編輯Microsoft.Common.targets? – 2011-03-16 18:25:18