无法更改本地 TFS 2010 路径
运行 VS 2010,我现在想要在 TFS 2010 上进行构建。在 Team Explorer 中,我将连接从旧的 TFS 2008 构建服务器更改为新的 TFS 2010 服务器。现在我想将源代码管理从旧的本地目录 (C:\TFS) 映射到新目录 (C:\TFS2010)。使用文件->源代码控制 ->工作区,我可以通过单击“递归”复选框将项目的顶级映射更改到新位置。
但是,我注意到,虽然顶层映射发生变化,但第二层文件夹的本地路径没有改变。
我尝试删除所有映射,并尝试刷新。尝试重新启动VS2010。尝试重命名旧目录 - 这是不允许的。
我还没有尝试从顶层获取最新版本,因为这会花费太长时间,而且我可能没有那么多磁盘空间。
奇怪的是,如果我转到文件 ->源代码控制 ->当选择第二层项目文件夹时,它似乎认为该层的映射已经更新。
有什么想法可以将我的所有项目(甚至只是其中的一些项目)重新映射到不同的本地路径吗?
Running VS 2010, I want to now build on TFS 2010. In Team Explorer, I change my connection from our old TFS 2008 build server to our new TFS 2010 server. Now I want to map my source control from the old local directory (C:\TFS) to new directory (C:\TFS2010). Using File -> Source Control -> Workspace, I can change the top level mapping of our projects to the new location, clicking the "recursive" check box.
However, I notice that while the top level mapping changes, the local paths for the second tier folders don't change.
I tried removing all mapping, and I tried refreshing. Tried restarting VS2010. Tried renaming the old directory – that wasn’t allowed.
I haven't tried getting latest from the top level, as that would take way too long and I probably don't have that much disk space.
Oddly, If I go to File -> Source Control -> Cloak while selecting a second tier project folder, it seems to think the mapping has already been updated for that tier.
Any ideas how I can re-map all my projects (or even just some of them), to a different local path?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
或文件->源代码控制 ->工作区 ->选择有问题的工作区,您可以删除并重新创建它
or File -> Source Control -> Workspaces -> Choose the workspace in question and you can remove and create it again
文件->源代码控制 ->工作区 ->选择相关工作区并单击“编辑”。
File -> Source Control -> Workspaces -> Choose the workspace in question and click "Edit".
隐藏然后取消隐藏受影响的文件夹对我有用。
Cloak and then uncloak the affected folders worked for me.
到目前为止,我能找到的唯一答案是编辑工作区定义并为 TFS 项目添加特定映射。但是,请勿添加通常由根级别映射处理的映射,因为如果您这样做,您的设置将被忽略。如果您为您的项目添加唯一的映射,它似乎确实有效。不是一个完美的答案。
由于您可以右键单击并重新映射根目录,我认为该功能被忽略了,这将允许您右键单击并重置项目文件夹的特定映射。
期待更好的答案。
The only answer I've been able to find so far is to edit your workspace definition and add a specific mapping for your TFS project. However, don't add a mapping that would be normally handled by the root level mapping cause if you do your setting will be ignored. If you add a unique mapping for your project it does seem to work. Not a perfect answer.
Since you can right click and remap the root I think the functionality was overlooked that would aloow you to right click and reset a project folder's specific mapping.
Looking forward to a better answer.
如果要更改 Team Foundation Server (TFS) 工作目录的本地路径,需要转到“文件”->“Team Foundation Server”。源代码控制 ->高级->工作区,然后选择您的工作区并单击编辑。
在下一个对话框中,将根 TFS 节点的映射更改为硬盘驱动器上的新位置。
If you want to change the local path for the working directory of the Team Foundation Server (TFS), you need to go to File -> Source Control -> Advanced -> Workspaces, then select your workspace and click Edit.
In the next dialog change the mapping for the root TFS node to the new location on your hard drive.
从根文件夹中删除映射,完成此操作后,您将能够更改路径。
由于根文件夹已映射,因此它将整个结构锁定到同一路径。
remove the mapping from the root folder, once this is done you will be able to change the path.
Since the Root folder is mapped it is locking the entire structure to the same path.
还可以通过源代码管理资源管理器更改 TFS 映射。这是在 Visual Studio 2017 中。
更改映射而不在 VS 2017 中删除此处)
从此处,它将创建新文件夹(如果尚不存在)并从 TFS 进行映射/下载。
TFS mapping can also be changed through Source Control Explorer. This is in Visual Studio 2017.
change mapping without removing here in VS 2017)
From here, it will create the new folder if it doesn't already exist and map/download from TFS.