[英]Add Solution to Existing Project File in Team Foundation Build
[英]Building a specific version of a solution in a TFS Team Build project
我已經建立了TFS 2008 TeamBuild,並且正在構建幾個解決方案:
我想使用源代碼管理中的最新版本來構建解決方案A和B,但是對於解決方案C,我想構建一個由TFS標簽定義的特定版本。
現在,我知道了:
/p:GetVersion:LmyLabel
參數 <PropertyGroup><GetVersion>LmyLabel</GetVersion><PropertyGroup>
元素 但這適用於整個構建過程和所有解決方案。
我只需要將其用於我的一種解決方案,最好是在SolutionToBuild
元素中。
像這樣:
<SolutionToBuild clude="$(BuildProjectFolderPath)/SolutionA.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
<SolutionToBuild clude="$(BuildProjectFolderPath)/SolutionB.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
<SolutionToBuild clude="$(BuildProjectFolderPath)/SolutionC.sln">
<Targets></Targets>
<Properties>GetVersion=LmyLabel</Properties>
</SolutionToBuild>
有任何想法嗎?
使用TFS 2010時,可以從架子集中進行構建。 這意味着系統首先獲取所有最新版本的文件,然后將其擱置在架子上。
但這不是很理想,您可以通過根據要為解決方案C構建的版本創建工作區來進行處理。然后創建包含解決方案A和B更改文件的架子集。
另一個選擇是擁有3個不同的構建定義。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.