tfs - VS 2013 发布管理 - 路径中存在非法字符

标签 tfs release-management ms-release-management

我已经构建了一个基于 TFS 2010 命令行实用程序 TF.exe 的自定义部署操作。当从部署代理服务器上的 DOS 提示符执行时,它运行良好。

TF view /collection:uri "$source path" > "local path"

并且文件确实被下载,不需要工作空间。但是,当通过VS2013RM执行时,出现错误:

Illegal characters in path.

当我将鼠标悬停在消息列上时,它会显示:

The installation command \"my correct command line here\" failed with the exit code \"100\"

什么给了?为什么它在一个地方执行得很好,但在另一个地方却不行? RM 客户端在网络服务帐户下运行,该帐户是本地管理员和集合服务帐户的一部分。

启用日志后

我能够捕获此命令:

Deployment: **********Installing component using command "C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" > "F:\[removed detail]\MetastoreCS.xml""

比错误

9/24/2014 10:58:10 AM - Information - (12628, 26560) - Deployment: Exception The installation  command \"C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" > "F:\[removed detail]\MetastoreCS.xml"\" failed with the exit code \"100\".

最佳答案

似乎重定向字符“>”引起了问题。

我能够使用 /output 选项使其工作。引用tf view documentation .

C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" /output:"F:\[removed detail]\MetastoreCS.xml"

关于tfs - VS 2013 发布管理 - 路径中存在非法字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25986234/

相关文章:

ms-release-management - 发布管理 12 - 创建带有主机标题的网站

git - 让开发人员在提交之前 checkout (获取最新更改)

Maven - 从外部属性文件中读取属性

Azure 释放复杂性

build-process - 什么是学习如何管理构建和发布的好资源?

tfs - ClickOnce 通过 TFS 和发布管理

powershell - TFS 2015-tfpt创建新的团队项目

visual-studio-2012 - TF30063 : You are not authorized to access after change from TFS2010 to TFS2012

java - TFS:在某人删除并重新添加而不是移动文件后如何恢复合并能力?

ms-release-management - 未能部署组件 - "Cannot deserialize the current JSON object ..."