0

I have one repository with 3 branches dev, test and prod. I have a Visual Studio solution with 3 projects in it. One Angular, a worker service and ASP.NET web api project. So that whole solution in one repository.

I have pushed everything to dev branch. So when creating the build pipeline I chose ASP.NET core and then on writing the build yaml, in the trigger I specified Dev branch

trigger : - dev

But how can I specify which project to build among the 3 project in that repository to build? My plan is to build the ASP.NET core web api to build.

Also I need another build for the angular as well..

Sandeep Thomas
  • 4,303
  • 14
  • 61
  • 132

1 Answers1

1

This will be in your build task:

steps:
- task: DotNetCoreCLI@2
  displayName: Build
  inputs:
    command: build
    projects: '**/*.csproj' # Update this to match your need
    arguments: '--configuration $(buildConfiguration)' 

The project path will be different for your various projects

Joy
  • 1,171
  • 9
  • 15
DreadedFrost
  • 2,602
  • 1
  • 11
  • 29