Last Updated: February 25, 2016
·
2.292K
· artfulhacker

How do I exclude a specific files from TFS 2012 source control?

It is way easier that in previous versions of TFS, simply create a .tfignore file.

For 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

2 Responses
Add your response

what about an ignore for all /packages/ directories for the entire project collection?

over 1 year ago ·

how about doing the following:

packages/*
!packages/repositories.config

over 1 year ago ·