“不存在适当的映射"在 TFS 中取消搁置搁置集时出错 [英] "No appropriate mapping exists" error while unshelving shelveset in TFS

查看:22
本文介绍了“不存在适当的映射"在 TFS 中取消搁置搁置集时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 TFS 2012.在 TFS 中有超过 15 个用户.当我尝试取消搁置搁置集文件时,它显示如下所示的错误

I am using TFS 2012. In TFS there are more than 15 users. When I try to unshelve a shelveset files it shows error as shown below

有趣的是,此错误不会出现在少数用户身上,他们可以将其搁置.所有用户都拥有相同的权限.该错误是针对一个用户而发生的,而对于另一位用户而言,它不会出现在同一台 PC(安装了 TFS 服务器的 PC)中.所以这不是什么奇怪的错误.最初我在想映射可能有问题,但是对于另一个用户,相同类型的映射允许取消搁置它.我也尝试重新创建用户,但并没有解决问题.那么为什么会出现这个错误呢?

Interesting is that this error does not comes for few users, and they are able to unshelve it. All the users have same permission. The error comes for one user and for another user it does not come in same PC(TFS server installed PC).So it's little strange error. Initially i was thinking like may be a problem with mappings,but for another user same kind of mapping allows to unshelve it. I also tried re creating the user and it does not solve the problem. So why does this error comes?

推荐答案

检查您在 Team Explorer > Pending Changes 中选择的工作区.您必须选择一个工作区,该工作区的映射包含您尝试取消搁置的文件的服务器路径.

Check the workspace you have selected in Team Explorer > Pending Changes. You must have a workspace selected that has a mapping which includes the server path of the file you are trying to unshelve.

(注意:确保您使用的是团队资源管理器中的工作区映射,而不是源代码管理资源管理器中显示的工作区.)

(Note: make sure you are using the workspace mapping in Team Explorer, NOT the workspace shown in Source Control Explorer.)

因此,如果搁置集上的文件是:$/TFS/Main/File1.cs,您需要使用包含该文件或其父文件夹之一的映射选择工作区(例如$/TFS/Main)

So if the file on shelveset is: $/TFS/Main/File1.cs, you need to have a workspace selected with a mapping that includes that file or one of its parent folders (e.g. $/TFS/Main)

我有多个工作区用于不同的分支,并且当我在选择功能分支"工作区时尝试取消搁置到主"工作区时,通常会看到此错误.

I have multiple workspace for different branches and usually see this error when I try to unshelve into "Main" workspace when my "Feature Branch" workspace is selected.

这篇关于“不存在适当的映射"在 TFS 中取消搁置搁置集时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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