TFS Build vNext-将所有程序集复制到一个文件夹 [英] TFS Build vNext - copy all assemblies to one folder
问题描述
我对vNext的第一印象非常好。一切看起来都很简单明了。现在我只想做一件简单的事情,事情变得复杂吗?我有一个简单的构建定义,其中包含Visual Studio Build。构建完成后,我想将所有文件从bin文件夹复制到网络共享上的一个文件夹。使用xaml构建定义时,如果将复制构建输出设置为 myserver,则这已经是默认行为。现在,使用默认的复制和发布构建工件,所有内容都将复制到每个项目的单独文件夹中。像
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\
但我想要全部
\\\myserver\\share\...\drop
我如何做到这一点(尽可能简单)。
How can i achieve this (as simple as possible).
推荐答案
您可以添加多个步骤来复制程序集(一个项目为一个步骤),并在该步骤中指定复制根。有关此问题的详细信息,请参阅我的回答:在从Visual Studio团队服务部署时在目标目录中复制一个文件
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
这篇关于TFS Build vNext-将所有程序集复制到一个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!