Is it possible to store credentials for automatic Team Foundation Server login?

寵の児 提交于 2019-12-22 02:02:27

问题


Is it possible to store the credentials that I use to connect to my Team Foundation Server directly in Visual Studio 2010?

I would like to avoid inserting them at every VS launch.

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.

Suppose that the machine name is TOOLS and the user is Marco, I need to insert every time

 User name: TOOLS\Marco 
 Password: *

Can you suggest a possible fix for this, if it exists?


回答1:


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 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.




回答2:


I found another way that works if your TFS has web access enabled.

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.

Than open Visual Studio and it should work without asking username and password.



来源:https://stackoverflow.com/questions/2645085/is-it-possible-to-store-credentials-for-automatic-team-foundation-server-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!