- Print
- Comment
- DarkLight
- PDF
Step 10 - Copy files to Database folder - Build
Article Summary
Share feedback
Thanks for sharing your feedback!
In this task we will copy the files produced when we build the solution in relation to the database. This will copy the dacpac file to the artifact staging directory so we can deploy it across environments.
The picture of the configuration of this task is below:
YAML
The yaml for this task is below:
variables:
BuildConfiguration: 'Release'
steps:
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)\Database'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)\DB\bin\$(BuildConfiguration)'
Contents: '*.dacpac'
TargetFolder: '$(Build.ArtifactStagingDirectory)\Database'
Was this article helpful?