tf.exe 无法确定工作空间
我正在尝试通过 Team Build 脚本调用 TF get 命令。我收到以下错误
无法确定工作空间。
互联网上的人们告诉我们,此错误是因为 Team Build 无法找到工作区,因为它是从不属于工作区的目录调用的。
提出的解决方案是指定工作目录。我这样做。构建定义路径和工作区中的映射都正常。但现在我收到以下错误:
在当前目录下找不到cmd.exe 目录。目录名称是 无效。
请帮忙。 谢谢
I am trying to call TF get command via Team Build script. I am getting the following error
Unable to determine the workspace.
Folks over the internet tell that this error is because Team Build cannot find the workspace because it is being called from a directory which is not part of the workspace.
The solution presented is to specify the working directory. I do so. The mappings are ok in Build Definition path as well as in the workspace. But now i get the following error:
Could not find cmd.exe in the current
directory . The directory name is
invalid.
Kindly help.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了问题。我在构建定义工作区部分中添加了另一个绑定,并在变量 $(MSBuildSourceDirectory) 的帮助下引用文件来获取/签入/签出。同时,我确保 $(SourceDir) 用于指定“构建定义”对话框的工作区部分中的映射。
(来源:geekswithblogs.net)
同时我遇到了260个字符的路径限制,所以我按照描述修改了构建路径中的输出目录<强>此处
(来源:geekswithblogs.net)
Solved the problem. I added one more binding in my build Definition Workspace Section and referenced files to get/checkin/checkout with the help of variable $(MSBuildSourceDirectory). Meanwhile I ensured that $(SourceDir) is used to specify mapping in the workspace section of my Build Definiton dialog.
(source: geekswithblogs.net)
At the same time i encountered 260-character path limit, so i modified the output directory in build path as described here
(source: geekswithblogs.net)