TFS 2015在一个目录中发布构建工件 [英] TFS 2015 Publish Build Artifacts in one directory
问题描述
我们刚刚从TFS 2010
升级到了TFS 2015
,我正在以"vNext"构建/工作流程格式重新创建XAML构建定义.
We have just upgraded from TFS 2010
to TFS 2015
and I'm recreating a XAML-Build-Definition in the "vNext" build/workflow-format.
在旧版本中,可以将所有文件(DLL)平坦地输出到一个目录中,而无需使用原始目录结构.
In the old Build it was possible to output all files (the DLLs) flat in one single directory, without their original directory structure.
使用新的TFS 2015 Build框架还是有可能吗?
Is this still possible with the new TFS 2015 Build framework?
我有以下Publish Build Artifact
-设置:
Artifact Type: File Share
Path: \\server\tfslib\$(Build.DefinitionName)\$(Build.DefinitionName)_$(Build.BuildNumber)
问题在于原始解决方案目录结构保留在Path
中指定的输出目录中.在没有整个子树的情况下如何获得输出?
The problem is that the original solution directory structure is preserved in the output directory specified in Path
. How can I get the output without the whole subtree?
作为一种解决方法,我目前正在Publish Build Artifact
之后执行Powershell步骤,但是在发布过程本身中这样做很不错.
As a workaround I'm currently doing this with a Powershell step after the Publish Build Artifact
but it would be nice to do this during the publishing process itself.
推荐答案
您可以使用复制文件"任务并在其中指定源文件夹来实现此功能.请参阅以下问题以获取详细信息:
You can use the "Copy File" task and specify the Source Folder in it to achieve this feature. See this question for details: Copy one file in target directory on deploy from visual studio team services
这篇关于TFS 2015在一个目录中发布构建工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!