我已经构建了一个基于 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/