简体   繁体   English

如何更改TFS项目版本

[英]How to change TFS Project version

How to change TFS project version and how to use old versions. 如何更改TFS项目版本以及如何使用旧版本。

I explain my question with an example. 我用一个例子解释我的问题。

I have a number of projects in solution name is TestSolution .(Suppose solution version is 1.0) 我有许多项目的解决方案名称为TestSolution 。(假设解决方案版本为1.0)

I create publishing file of the solution suppose 10-Dec-2013 and publish to Client (we are changing version 1.0 to 1.1). 我创建了该解决方案的发布文件(假设2013年12月10日发布)并发布到客户端(我们将版本1.0更改为1.1)。

After that we are modifying the project, On 15-Dec-2013 the client asking for a small change that change will fit in Version 1.0 then we need to create a new publishing file on Version 1.0. 之后,我们正在修改项目,在2013年12月15日,客户要求进行小的更改以使该更改适用于1.0版,然后我们需要在1.0版上创建一个新的发布文件。 Is it possible on TFS 2010? TFS 2010上可能吗? And merge the change form on Version 1.1? 并合并版本1.1上的更改表格?

Yes, you can branch a directory in source by date or changeset. 是的,您可以按日期或变更集在源中分支目录。

To branch by date or changeset: 要按日期或变更集分支:
1.In Source Control Explorer, right-click the folder or file that you want to branch, point to Branching and Merging, and then click Branch. 1.在“源代码管理资源管理器”中,右键单击要分支的文件夹或文件,指向“分支和合并”,然后单击“分支”。

  • The Branch dialog box appears. 出现“分支”对话框。

2.In the Target box, modify the location and name for the new branch. 2.在“目标”框中,修改新分支的位置和名称。

  • You can also click Browse to specify a target. 您也可以单击浏览以指定目标。

3.In the Branch from version section, click one of the following options in the By list: 3.在“从版本分支”部分中,单击“按列表”中的以下选项之一:

  • If you click Changeset, you can specify the number of the changeset in the Changeset box. 如果单击“变更集”,则可以在“变更集”框中指定变更集的编号。 As an alternative, you can click the ellipses (…) to open the Find Changesets dialog box. 或者,您可以单击省略号(…)打开“查找更改集”对话框。

    -If you click Date, you can specify a date in the Date box. -如果单击“日期”,则可以在“日期”框中指定日期。

I would suggest you look at using labels on your source when you release. 我建议您在发布时考虑在上使用标签 It gives you the ability to have an exact marker of your source to branch from in the future if needed. 它使您能够对源进行精确标记,以便将来需要时进行分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM