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

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

问题描述

我正在使用TFS2012.在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?

推荐答案

检查在团队资源管理器">待更改"中选择的工作区.您必须选择一个具有映射的工作空间,该映射包括要尝试搁置的文件的服务器路径.

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.

(注意:请确保您使用的是Team Explorer中的工作区映射,而不是Source Control Explorer中显示的工作区.)

(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天全站免登陆