I have a solution in Visual Studio consisting of multiple report projects, and using Azure Pipelines to deploy the reports to my report server. This pipeline has served me faithfully for years, but my goal is to simplify it a bit.
Running MSBuild for the solution generates a directory structure like this:
- root
- Project A
- bin
- Release
- Report1.rdl
- Report2.rdl
- Project B
- bin
- Release
- Report3.rdl
- Report4.rdl
Question: how can I use either the Copy Files task in my pipeline or a subsequent PowerShell task to produce a slightly flattened structure like this, where the bin and Release folder for each project is removed?:
- root
- Project A
- Report1.rdl
- Report2.rdl
- Project B
- Report3.rdl
- Report4.rdl
Here is an outline of my current pipeline configuration:
- Build solution
- MSBuild arguments: none
- Configuration: $(BuildConfiguration)
- Copy files
- Source folder: $(build.sourcesdirectory)
- Contents: **\bin\$(BuildConfiguration)\**\*.rdl
- Target folder: $(Build.ArtifactStagingDirectory)
- Publish artifact
- Path to publish: $(Build.ArtifactStagingDirectory)