Azure Devops YAML pipeline - multiple projects in single solution

Copper Contributor

Build server is trying to handle a solution that has 8 different projects.

 

The build server has a YAML step that looks like this:

 

 

# MSBuild step using Visual Studio
- task: VSBuild@1
  displayName: Build Solution $(Solution)
  inputs:
    clean: true
    solution: $(Solution)
    msbuildArgs: '/p:DeployOnBuild=True /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:DeleteExistingFiles=True /p:SkipInvalidConfigurations=true /p:publishUrl=$(Build.BinariesDirectory) /p:SelfContained=True'
    platform: $(BuildPlatform)
    configuration: $(BuildConfiguration)

 

 

I need the output on the build agent to be

\b

  \project1

  \project2

  \project3

  \etc.

 

What I get is a single folder with a single project.  My guess is the build is clobbering all the previous ones.

 

DotNetCoreCLI@2 has a flag 'modifyOutputPath' which will Add project's folder name to publish path. Default: true.  Trying to find something similiar for @VSBuild@1.

0 Replies