How to ignore files according to their extension in TFS?

3

In git you can use the .gitignore file to ignore some file extensions, but I wonder if this can also be done in Team Foundation Service or if there is something similar to skip files with certain extensions.

    
asked by anonymous 23.08.2017 / 16:38

1 answer

3

In the local workspace you will have the .tfignore file (TFS 2012, 2013, 2015 and above)

In the local workspace, you can use .tfignore (which is equivalent to Git .gitignore)

.tfignore example:

######################################
# Ignore .cpp files in the ProjA sub-folder and all its subfolders
ProjA\*.cpp
# 
# Ignore .txt files in this folder 
\*.txt
#
# Ignore .xml files in this folder and all its sub-folders
*.xml
#
# Ignore all files in the Temp sub-folder
\Temp
#
# Do not ignore .dll files in this folder nor in any of its sub-folders
!*.dll

Remembering that .tfignore is valid for new files.

    
23.08.2017 / 16:46