14

I have two separate projects from two separate TFS VCS roots that I want to be part of the same build and was wondering if this is possible.

Project 1

VCS Root: $/ProductName/Development/Project1

Build file path: API/API.sln

Project 2:

VCS Root: $/QA/Test/Tools/Project2

Build file path: Test/Test.sln

I want step #1 of the build to compile Project 1, and step #2 to compile Project 2. How can I do this if the build file path is relative to the VCS root/checkout directory and the solutions are from two different VCS roots?

Thanks in advance!

4

1 回答 1

24

可以有两个 VCS 根并更改它们的结帐文件夹(因此不要在根文件夹中都签出)。为此,在我们的“VCS Roots”对话框中更改“Checkout Rule”并为您的项目添加:

对于项目 1:

+:.=>project1

对于 Project2:

+:.=>project2

比你在根目录中得到这个结构:

root
  - project1
  - project2
于 2015-09-30T12:17:12.223 回答