问题
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