I have the following task:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'XXX'
arguments: '-c "Release" /p:Platform="x64"'
and I want to set the outputpath of the build so that I can publish an artifact after compiling.
/p:OutputPath="$(build.artifactStagingDirectory)\XXX"
But when I specify the output directory (--output $(Build.ArtifactStagingDirectory)\X') I get an error MSB3073
If I remove the output argument it works.
How can I build correctly so that I can publish the artifact or solve the output issue?