user5855178
user5855178

Reputation: 725

VSTS - How to build solution in different team project?

I just fired up VSTS after a while away from it. Working on other projects.

Microsoft seems to have changed the build definition UI and now I cannot build solutions located in other team projects.

MS has Repositories listed, but only the current team project.

If I am in a build definition saved in Team Project A, how do I now map sources to a solution in Team Project B?

This used to be easy until this new build editor was released...

Upvotes: 0

Views: 733

Answers (2)

starian chen-MSFT
starian chen-MSFT

Reputation: 33698

If you are using TFVC repository, you can specify the path of other team project in Workspace mappings, then the source in other team project would be downloaded too.

enter image description here

If you are using git repository, the better way is using submodule.

Upvotes: 1

Marina Liu
Marina Liu

Reputation: 38106

  • If the solution in team proejct B is not related with solution in team project A, you can go to projects page https://account.visualstudio.com/_projects (or go to the page from team project A directly by clicking the icon in the top left corner) to select team project B.

    enter image description here

    Then in the Build tab, create/edit your build definition and then queue your build.

  • If you want to build the solution in team project A with the solution in team project B together, you can add the solution in team project B as submodule for the repo in team project A (if you used git as VCS). Else you checkin the code from team project B to team project A (if you use TFVC as VCS).

BTW: in a build definition, it does only list the repositories in current team project. Even for the old build definition UI/editor, it also only list the repositories for the current team project.

Upvotes: 0

Related Questions