问题
I have used the
/p:GenerateProjectSpecificOutputFolder=True for creating build for each and every project in my solution and now i wanted to customerize the folder structure on my needs. How can we achieve this?
enter image description here
回答1:
If you are using XAML build, you can customize Binaries folder in TFS Team Build by modifying the build process template. Adding CreateDirectory Activity and FindMatchingFiles activity are necessary, following this blog for more details.
If you use the new build system, that will be much easier to manage artifacts. With task Publish Build Artifacts, you can specify contents in the task, also you can add as many Publish Build Artifacts task as you want to manage artifacts. More details, check http://www.codewrecks.com/blog/index.php/2015/06/30/manage-artifacts-with-tfs-build-vnext/
回答2:
Alternatively you can extend your build definition with a PowerShell script at different points within the build:
- Pre-build
- Post-build
- Pre-test
- Post-test
Note I am using the TfvcTemplate.12.xaml template. This is the build template that comes with TFS 2013.
来源:https://stackoverflow.com/questions/35501542/how-to-create-custom-folder-from-the-release-folder-of-windows-work-flow-for-tfs