让 Visual Studio TFS 插件存储您的凭据?
每次打开 Visual Studio 2008 时,都会弹出一个对话框,提示输入用户名和密码(“连接到 Team Foundation Server”)。大概这是因为我的 TFS 服务器存储在“团队资源管理器”选项卡的“服务器”中,因此它希望在启动时连接到它。此外,当我打开一个解决方案文件(其解决方案与 TFS 源代码管理相关联)时,由于显而易见的原因,会发生这种情况。
我的问题与网络上各个地方描述的问题相同,例如:
- http://kevinsmi.wordpress.com/2009/10/07/getting-visual-studio-to-remember-your-tfs-credentials-on -windows-7/
- http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/186a469c-bc58-48c4-9db9-ffc2e0fedb11
- http://hastobe.net/blogs/stevemorgan/archive/2008/ 08/25/stop-visual-studio-prompting-for-tfs-credentials.aspx
在我所看到的所有情况下,建议的解决方案是将 TFS 服务器凭据添加到 Windows 存储的凭据中。我使用的是 Windows 7,所以我认为您可以在凭据管理器中执行此操作。
好吧,我已将带有我的凭据的 TFS 服务器添加到“Windows 凭据”列表中,当我打开 Visual Studio 2008 时,我仍然收到输入用户名和密码的提示。任何人都有任何想法如何让它自动使用我的凭据登录?
更新:
我将 TFS 服务器的计算机名称以及我的用户名和密码添加到凭据管理器中(在我获得其 IP 地址之前)。现在,VS2008确实加载时不会提示我输入凭据...但 VS2005 仍然提示我输入凭据,即使它在团队资源管理器中注册了完全相同的服务器!此外,在 Team Explorer 中注册的服务器是服务器的 IP,该 IP 已存储在 Windows 凭据中,而不是服务器的名称。所以这仍然是一个谜。这可能是 VS2005 版本的 Team Explorer 源代码控制插件特有的注册表设置吗?我可以在注册表中的哪里找到这个潜在的设置?
Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose solution is associated with TFS source control, for obvious reasons.
My problem is identical to that described in various places on the web, such as:
- http://kevinsmi.wordpress.com/2009/10/07/getting-visual-studio-to-remember-your-tfs-credentials-on-windows-7/
- http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/186a469c-bc58-48c4-9db9-ffc2e0fedb11
- http://hastobe.net/blogs/stevemorgan/archive/2008/08/25/stop-visual-studio-prompting-for-tfs-credentials.aspx
In all cases I can see, the suggested solution is to add the TFS server credentials to Windows' stored credentials. I'm using Windows 7, so I think the way you do that is in the Credential Manager.
Well, I've added the TFS server with my credentials to the 'Windows Credentials' list, and I still get the prompt for my username and password when I open Visual Studio 2008. Anyone have any ideas as to how I can get it to login with my credentials automatically?
UPDATE:
I added my TFS server's computer name, along with my username and password, into the Credential Manager (before I just had its IP address). Now, VS2008 does load without prompting me for credentials... but VS2005 still prompts me for them, even though it has the exact same server registered in Team Explorer! Whatsmore, the server registered in Team Explorer is the server's IP, which was already stored in Windows Credentials, rather than the server's name. So this is still a mystery. Could this be some registry setting peculiar to the VS2005 version of the Team Explorer source control plugin? Where in the registry could I find this potential setting(s)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否尝试过访问 TFS 网站并向 IE 输入您的凭据?
如果您不尝试,请尝试选中“记住我的凭据”复选框。
我认为这可以解决你的问题。
Did you even try to access TFS web site and enter your credentials to IE?
If you don't try, please try and check "Remember my credentials" checkbox.
I think this can solve your problem.
我找到了另一种方法,请查看这篇文章 http://blogs.msdn.com/b/granth/archive/2010/10/17/getting-started-with-tfs-hosting-from-discountasp-net.aspx
并阅读步骤 7,
也许这可以回答你的问题。
I found another way, check this article http://blogs.msdn.com/b/granth/archive/2010/10/17/getting-started-with-tfs-hosting-from-discountasp-net.aspx
and read Step 7,
may be this can be answer your problem.
对于 Visual Studio 2008,按照我上面的描述在凭据管理器中输入凭据似乎有效。
我也在 Visual Studio 2005 中输入了服务器的 IP 地址而不是主机名,起初它仍然在启动时提示我输入用户名/密码。然而,现在它已经停止这样做了。也许有些东西需要超时?我只能说,Visual Studio 的 TFS 插件以奇怪的(且未记录的)方式工作。
For Visual Studio 2008, entering the credentials in the Credential Manager as I described above seemed to work.
I entered the server's IP address instead of its hostname in Visual Studio 2005 too, and at first it still prompted me for the username/password on startup. However, it has now stopped doing so. Maybe something needed to timeout? All I can say is, Visual Studio's TFS plugin works in strange (and undocumented) ways.
我也有同样的问题。问题是无法识别 TF-Server 位于本地 Intranet 区域中。因此,我将 TF-Server 添加到 Internet Explorer 设置中的受信任站点,并将安全级别中的用户身份验证更改为使用当前用户名和密码自动登录。
I had the same problem. The problem was that the TF-Server was not recognized being in the local intranet zone. So I added our TF-Server to the trusted sites in Internet Explorer settings and changed the user authentication in security level to automatically sign on with current username and password.