By using Azure DevOps build pipeline we want to copy a common "appsettings.production.json" from our solution into the ArtifactStagingDirectory before publishing the artifacts to the Azure container drop location.
The build pipelines is
- DotNetCoreCLI@2 (build)
- CopyFiles@2
- DotNetCoreCLI@2 (publish with zip)
We can verify that the appsetting.production.json gets copied to the
Build.SourcesDirectory - however once the artifact is zipped and dropped, the file is not included.
Isn't it possible to include a file into the SourcesDirectory before pushlishing with zip ?