6

How to configure multiple project in Team Build 2015 (using the new task based workflow, not the old XAML builds).

Right now I see only one solution can be configured for Visual Studio build task.

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
Siva palla
  • 626
  • 5
  • 12

3 Answers3

6

You can easily add more than one build task that explicitly calls a single solution. That will also allow you to control the order that they get built.

enter image description here

Just select "Visual Studio Build" from the sea list. This works in Visual Studio Online and TFS 2015.

4

As others have mentioned there are multiple ways to accomplish this:

  1. Add multiple "Build with MsBuild" or "Build with Visual Studio" tasks. Let each task build a specific solution by entering the full path to the solution/
  2. Use the wildcard solution to find all solutions **/*.sln will build all solutions in the workspace.

    • You can use a workspace cloaking rule if you're using TFVC for source control to exclude one of your solution files from the workspace, that way it won't be downloaded from sourcecontrol and won't be built.
  3. Use ; to combine multiple search patterns: **/abc.sln;**/xyz.sln

  4. Create a custom msbuild file (e.g. buildprojects.proj) which in turns invokes the msbuild to build each solution you wan to build. Configure the task in the workflow to call teh .proj file instead of the specific solutions.

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
1

You can enter a pattern. The default for the Visual Studio template is **/*.sln, which will recursively match on all .sln files in the repository/workspace.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
  • If My solution have different naming convention Say Abc.Sln ,CBD.sln and EDF.sln and i want only two out of them to build. – Siva palla Jul 06 '15 at 13:16
  • Have you tried creating a dirs.proj file and providing that to the build definition, instead of the .sln? dirs.proj can contain any projects that you want the system to build. You can find more details here https://msdn.microsoft.com/en-us/magazine/dd483291.aspx – Techtwaddle Jul 07 '15 at 04:44