2011-07-19 45 views
2

我們最近升級到TeamCity 6.5 Enterprise,它開始抱怨MSBuild跑步者步驟中的/ p命令行參數,建議將這些參數移動到生成參數。所以我從「命令行參數:」中刪除了所有我的/ p,並將它們添加到生成參數中。這些問題與平臺PARAM馬上就出現了:MSBuild亞軍在TeamCity 6.5中的變化

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(483, 9): The OutputPath property is not set for project 'MyProj.csproj.teamcity'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Testing' Platform='Any CPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. 

我的構建方案包括很多步驟,一些建築SLN-文件,其他的.csproj/.msbuild沒有解決方案文件。根據您構建的內容(如here) - 「AnyCPU」或「任何CPU」,對平臺參數的處理方式有所不同。據我瞭解情況是這樣。這可以修復而不會恢復到runner中的/ p命令行參數?

此外,這個新的MSBuild跑步者不會記錄它使用的確切命令行,因此很難診斷出這些問題。非常令人沮喪。

回答