I have a .NET Core solution with two projects (proj1
and proj2
). When I run a build in Azure DevOps, I use the DotNetCoreCLI@2 command like this:
- task: DotNetCoreCLI@2
displayName: 'Build output'
inputs:
command: 'build'
projects: '**/*.csproj'
arguments: '--output $(System.DefaultWorkingDirectory)/publish_output'
As is, all the artifacts from both builds end up in the publish_output
directory. What I'd like is for there to be a proj1
and proj2
subdirectory created under publish_output
and the artifacts from the projects placed appropriately.
Is this possible? I could not find a "currently being build project name" variable to append to the output directory.
modifyOutputPath
input? See the Documentation – Simply Ged