TFS 2015 在一个目录中发布构建工件 [英] TFS 2015 Publish Build Artifacts in one directory

查看:22
本文介绍了TFS 2015 在一个目录中发布构建工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚从 TFS 2010 升级到 TFS 2015,我正在以vNext"构建/工作流格式重新创建 XAML-Build-Definition.

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?

我有以下发布构建工件-设置:

工件类型:文件共享

路径:\server fslib$(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.

推荐答案

您可以使用复制文件"任务并在其中指定源文件夹来实现此功能.有关详细信息,请参阅此问题:从 Visual Studio 团队服务部署时复制目标目录中的一个文件

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆