Forum Discussion
BDuffey
Oct 30, 2023Copper Contributor
Azure Devops YAML pipeline - multiple projects in single solution
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.
mailto: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.
1 Reply
Refer a simlar discussion on below:
asp.net - Azure devops VSBuild , Argument Outputpath - Stack Overflow