2012-03-14 238 views
1

我有TFS 2010,並且爲團隊項目之一創建了構建定義(使用默認構建模板)並添加了項目之一的解決方案。但是,當嘗試創建構建了以下錯誤:創建構建時出錯

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (902): The command "if Debug == Debug copy "C:\Builds\14\\\Sources\ServerObjects..\SharedInterfaces\bin\debug*.dll" "C:\Builds\14\\\Sources\ServerObjects..\ServerObjects\bin\debug"" exited with code 1.

回答

0

TeamBuild覆蓋輸出文件夾,因此bin \ debug(或bin \ release)文件夾將不存在。它將輸出整理成二進制文件。

對於您的自定義構建步驟,請使用obj文件夾而不是bin,因爲在TeamBuild和本地計算機構建下這將與此相同。