Reputation: 837
I am new to tfs. I am checking out a file by right click and check out in solution explorer. But if try to alter the any file it is automatically checking out. how to prevent this ?
And i need to set locking type as Prevent other users from checkin and check out
How to achieve this ? Thanks in advance.
Upvotes: 2
Views: 5211
Reputation: 16134
VS->Tools>Options> Select Source Control under options. Select Environment under Source Control. Now under Checked-in Items->Editing-> Select Do noting
Upvotes: 12
Reputation: 845
Find the file in Windows Explorer, and modifying the properties of it by turning off the Read-Only flag.
This is not recommended though as Visual Studio will not block you from modifying the file, nor will it check it in when you do perform a code check in.
One way for Visual Studio to detect the file change is when your TFS connection is brought Online from an Offline state and the wizard runs looking for non Read-Only files in the solution, then marks those files as checked out.
Upvotes: 0
Reputation: 2041
There's a setting in Tools | Options | Source Control | Environment that controls automatic checkout of edited files
Upvotes: 1