TFS Build vNext - copy all assemblies to one folde

2019-08-08 08:21发布

This question already has an answer here:

my first impression of the vNext was very good. Everything seems simple and straightforward. Now I just want to get a simple thing done and it gets complicated? I have a simple build definition which contains the Visual Studio Build. After the build is done i would like to copy all files from bin folders to one folder on a network share. With a xaml build definition this was already the default behavior if you set copy build output to \\myserver\share. Now with the default Copy and Publish Build Artifacts everything gets copied in a separate folder for each project. Like

\\\myserver\\share\...\drop
    + MyProject1\bin\
    + MyProject2\bin\

but i want all assemblies in

\\\myserver\\share\...\drop

How can i achieve this (as simple as possible).

1条回答
神经病院院长
2楼-- · 2019-08-08 09:05

You can add several steps to copy the assemblies (One step for one project) and specify the copy root in the step. Refer to my answer in this question for details: Copy one file in target directory on deploy from visual studio team services

查看更多
登录 后发表回答