One of the underrated features of TFS is cloaking . Like SVN ignore , cloaking allows you to ignore a specific folder or files.
Filling in the folder
Folder smoothing is easy: just right-click the folder in the version control explorer and select Cloak
File shading
The user interface does not disclose cloning in a single file, but sometimes you may need to hide a specific file, such as app.config .
Go to File > Source Control > Workspaces
Select a workspace and click Edit .
Under the working folders and the new entry with the status Cloaked and enter the full path to the file of the file that you want to hide. (For example: $/MyTeamProject/Dev/Src/SomeProject/app.config )

Using the local workspace .tfignore file (in TFS 2012, 2013, 2015 and above)
In Local Workspace , use the .tfignore file (equivalent to .gitignore for Git)
.tfignore file example
Permission Lock
Another approach is to refuse to register a file (administrative privileges are required):

KMoraz Mar 16 '12 at 18:53 2012-03-16 18:53
source share