本文介绍了在具有工作空间的文件中检入TFS(命令行)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有可能只是说给TFS我有一个文件(称为Version.txt),我想要在一个位置(例如$ / MyProject / MyVersionLocation)检查,没有任何工作空间设置为位置?
Is it possible to just say to TFS that I have a file (call it Version.txt) and I want it to be checked in at a location (say $/MyProject/MyVersionLocation) and not have any workspace setup for that location?
像(假装语法):
推荐答案
无法在没有该路径的工作空间映射的情况下签入文件。
It is not possible to checkin a file without a workspace mapping for that path.
一个选择是使用tf workspace和tf workfold的组合在签入前动态创建工作区。
One option would be to use a combination of "tf workspace" and "tf workfold" to dynamically create a workspace before checking in.
例如:
tf workspace /collection:http://server:8080/tfs/Collection /new TempWorkspace /noprompt
tf workfold /collection:<server> /workspace:TempWorkspace /map $/MyProject/MyVersionLocation/Version.txt C:\Version.txt
这篇关于在具有工作空间的文件中检入TFS(命令行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!