visual-studio 是否可以存储用于自动 Team Foundation Server 登录的凭据?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2645085/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to store credentials for automatic Team Foundation Server login?
提问by Drake
Is it possible to store the credentialsthat I use to connect to my Team Foundation Serverdirectly in Visual Studio 2010?
是否可以直接在Visual Studio 2010 中存储用于连接到Team Foundation Server的凭据?
I would like to avoid inserting them at every VS launch.
我想避免在每次 VS 启动时插入它们。
The problem is that the machine that host TFS is not in the domain and I am connecting using the credentials of a user created on that machine.
问题是托管 TFS 的机器不在域中,我使用在该机器上创建的用户凭据进行连接。
Suppose that the machine name is TOOLS and the user is Marco, I need to insert every time
假设机器名是TOOLS,用户是Marco,我每次都需要插入
User name: TOOLS\Marco
Password: *
Can you suggest a possible fix for this, if it exists?
如果存在,您能否提出可能的解决方案?
回答by Jim T
On Windows 7 (and vista?) you can stop TFS prompting for passwords all the time by adding in a windows credential in Control Panel -> User Accounts -> User Accounts -> Manage your credentials.
在 Windows 7(和 vista?)上,您可以通过在控制面板 -> 用户帐户 -> 用户帐户 -> 管理您的凭据中添加 Windows 凭据来停止 TFS 一直提示输入密码。
Windows XP: Control Panel -> User Accounts -> Advanced -> Manage Passwords
视窗 XP: Control Panel -> User Accounts -> Advanced -> Manage Passwords
Add a windows credential for your tfs server. You might also have to add the server to your local intranet in your internet settings.
为您的 tfs 服务器添加 Windows 凭据。您可能还需要在 Internet 设置中将服务器添加到本地 Intranet。
回答by Drake
I found another way that works if your TFS has web access enabled.
如果您的 TFS 启用了 Web 访问,我找到了另一种有效的方法。
Just use Internet Explorer to access to the TFS web site and it will prompt you with a dialog box that has the checkbox to allow you remember the credentials.
只需使用 Internet Explorer 访问 TFS 网站,它就会提示您一个对话框,其中包含允许您记住凭据的复选框。
Than open Visual Studio and it should work without asking username and password.
比打开 Visual Studio,它应该可以在不询问用户名和密码的情况下工作。

