如何在TFS(而不是整个工作空间)中更改子文件夹的本地路径? [英] How do I change the local path of a subfolder in TFS (not the whole workspace)?

查看:416
本文介绍了如何在TFS(而不是整个工作空间)中更改子文件夹的本地路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我开始处理项目时,我在TFS中下载了IPAddress\CompanyName\ProductName\DevBranch,并将其映射到C:\DevBranch.但是现在我想将根文件夹映射到本地路径,因此我已经将IPAddress\CompanyName映射到了C:\CompanyName.但是,IPAddress\CompanyName\ProductName\DevBranch仍映射到C:\DevBranch而不是C:\CompanyName\ProductName\DevBranch.

When I started working on a project I downloaded IPAddress\CompanyName\ProductName\DevBranch in TFS, mapping it to C:\DevBranch. But now I want to map the root folder to a local path, so I've mapped IPAddress\CompanyName to C:\CompanyName. However, IPAddress\CompanyName\ProductName\DevBranch is still mapped to C:\DevBranch and not C:\CompanyName\ProductName\DevBranch.

如何更改此本地路径的映射?我想让它自动将所有文件从旧的本地文件夹移动到新的本地文件夹.

How do I change the mapping of this local path? I want to have it automatically move all the files from the old local folder to the new local folder.

我所查找的所有内容都在谈论编辑工作区,并且似乎仅适用于更改根文件夹.当我去编辑我的工作区时,显示的唯一本地映射是C:\CompanyName.没有什么可以让我在逐个子文件夹的基础上更改映射.

Everything I've looked up keeps talking about editing workspaces, and only seems to apply to changing the root folder. When I go to edit my workspace, the only local mapping that shows up is C:\CompanyName. There's nothing that allows me to change mappings on a subfolder-by-subfolder basis.

我现在尝试通过添加新的工作文件夹,将源代码控制文件夹设置为IPAddress\CompanyName\ProductName\DevBranch并将本地文件夹设置为C:\DevBranch,然后将本地文件夹更改为C:\CompanyName\ProductName\DevBranch来编辑工作区,仍然没用.源代码管理资源管理器仍显示C:\DevBranch作为本地文件夹.请帮忙.我不知道该怎么办.

I've now tried editing the workspace by adding a new working folder, setting the source control folder to IPAddress\CompanyName\ProductName\DevBranch and the local folder to C:\DevBranch, then changing the local folder to C:\CompanyName\ProductName\DevBranch, and it still didn't work. Source Control explorer is still showing C:\DevBranch as the local folder. Please help. I don't know what to do.

我能够在Source Control Explorer中右键单击IPAddress\CompanyName,然后单击Advanced> Remove Mapping.但是,当我右键单击IPAddress\CompanyName\ProductName\DevBranch时,没有这样的选项.这就像某种僵尸映射.我无法更改它,也无法删除它,并且在大多数情况下,Source Control Explorer会一直显示它而不确认映射存在.

I was able to right-click IPAddress\CompanyName in Source Control Explorer and click Advanced > Remove Mapping. However, no such option existed when I right-clicked IPAddress\CompanyName\ProductName\DevBranch. It's like some kind of zombie mapping. I can't change it, I can't remove it, and Source Control Explorer keeps showing it without acknowledging the mapping exists in most cases.

推荐答案

源代码管理资源管理器中存在问题,

There is the issue in Source Control explorer, there is a feedback: Manage Workspace Issues - Changing the Local Path of a Project.

您可以通过单击获取最新版本"(您的屏幕快照)来获取最新版本,然后文件将位于正确的文件夹中,缓存将被更新,然后您将在Source Control Explorer中找到更改的路径.

You can get the latest version by clicking Get Latest Version (your screenshot), then the files will be in the correct folder and the cache will be updated, then you will find the path is changed in Source Control explorer.

这篇关于如何在TFS(而不是整个工作空间)中更改子文件夹的本地路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆