TFS 2012 has the option to drop a .tfIgnore
file in your workspace.
Visual studio has a UI to create the file for you:
While you can manually create a .tfignore
text file using the above rules, you can also automatically generate one when the Pending Changes page has detected a change.
To automatically generate a .tfignore
file
In the Pending Changes page, in the Excluded Changes section, choose the Detected changes link.
The Promote Candidate Changes dialogue box appears.
Select a file, open its context menu, and choose Ignore this local item, Ignore by extension, or Ignore by file name.
Choose OK or Cancel to close the Promote Candidate Changes dialog box.
A .tfignore
file appears in the Included Changes section of the Pending Changes page. You can open this file and modify it to meet your needs.
The .tfignore
file is automatically added as an included pending change so that the rules you have created will apply to each team member who gets the file.
Or create it from the command line using echo . > .tfIgnore
and then open it using notepad.
Another trick is to name the file .tfIgnore.
in explorer and save it. You'll probably be prompted if you want to change the extension, the answer, in this case, is: yes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…