本文介绍了无法搁置 VS2012 中针对 TFS2010 的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我们正在使用 TFS2010(仅用于源代码控制),直到最近每个人都在使用 VS2010.我们的开发人员刚刚安装了 VS2012.

We are using TFS2010 (for source control only), and until recently everyone was using VS2010. Our developers just installed VS2012.

在 Visual Studio 中下拉代码工作正常.当您在 Team Explorer 中转到Pending Changes"时,我们看到 TF201072:找不到用户或组.验证在您的工作项类型定义中使用的用户和组是否已添加到 Team Foundation Server.,两次,在顶部.我们仍然可以从 VS 签入代码 - 似乎这个错误被忽略了.

Pulling down code works fine in Visual Studio. When you go to "Pending Changes" in Team Explorer, we are seeing TF201072: A user or group could not be found. Verify that the users and groups used in your work item type definition have been added to Team Foundation Server., twice, at the top. We can still check-in code from VS - seems this error is ignored.

但是,我们无法搁置更改 - 当您尝试搁置时,弹出窗口中会出现同样的错误,并且搁置集未保存.

However, we are unable to shelve changes - when you attempt to shelve, the same error comes up in a popup, and the shelveset is not saved.

我们可以使用命令提示符 (tf shelve) 搁置,并且仍然可以使用 VS2010 搁置,所以它似乎不是权限问题.此外,TFS 管理员没有看到错误消息,并且可以从 VS2012 中搁置而没有错误.

We can shelve using the command prompt (tf shelve), and can still shelve using VS2010, so it doesn't seem to be a permission issue. Also, the TFS administrator is not seeing the error message, and can shelve from VS2012 with no error.

关于什么可能导致 VS 在这里出错的任何想法?我们已尝试清除 TFS 缓存、创建新工作区,并检查了我们在 Visual Studio 中可以找到的所有选项.

Any thoughts as to what could be causing VS to error out here? We've tried clearing out the TFS cache, creating a new workspace, and gone over every option we could find in Visual Studio.

推荐答案

我遇到了同样的问题.从网站上尝试了许多不同的东西,但没有一个有帮助.终于找到了解决这个问题的办法.请按照以下步骤操作:

I had the same issue. Tried many different stuff from web sites and non of them helped. Finally find the solution for this. Follow these to make it work:

1) 创建临时 AD 用户

1) Create temporary AD User

2) 您需要将所有旧用户配置转移到新的临时帐户中.如果您可以使用临时帐户,您可以保留它并摆脱旧帐户.进入安装了 TFS 的机器并运行以下命令:TFSConfig identities/change/fromdomain:mydomain/todomain:mydomain/account:oldAccount/toaccount:temporaryAccount

2) You will need to transfer all old user configuration into a new temporary account. If you are OK with using the temporary account you may just keep it and get rid of old account. Go into the machine that TFS is installed and Run this command: TFSConfig identities /change /fromdomain:mydomain /todomain:mydomain /account:oldAccount /toaccount:temporaryAccount

(TFSConfig 位于 C:\Program Files\Microsoft Team Foundation Server XX.0\Tools\)

(TFSConfig is in C:\Program Files\Microsoft Team Foundation Server XX.0\Tools\)

3) 如果您不想使用临时帐户,则需要从临时帐户转换为旧帐户.为此,请运行相同的命令并更改用户名:TFSConfig 身份/change/fromdomain:mydomain/todomain:mydomain/account:temporaryAccount/toaccount:oldAccount

3) If you don't want to use temporary account you will need to convert from temp account to your old account. To do that run the same command wit changing the user names:TFSConfig identities /change /fromdomain:mydomain /todomain:mydomain /account:temporaryAccount /toaccount:oldAccount

这就是你需要做的.

这篇关于无法搁置 VS2012 中针对 TFS2010 的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 20:36