I want to ignore a folder (and its content) in a visual studio 2015 solution from beeing checked-in into tfs.
I created a file called '.tfignore' in the root of the project that is containing the folder I want to exclude.
The content of the file looks like this: /Dist
This is not working at all. Even if I add *.cs
to the file, nothing gets excluded.
Does somebody know where the problem is? How do I wire this up in a working way?
First, please make sure your .tfignore
file created without any problem. This file does not have any suffix. One way to create it suggest you to rename a new.txt file with "tfignore."
It will auto change to right .tfignore file.
You can also use the auto automatically generated .tfignore file, follow below steps:
The Promote Candidate Changes dialog box appears.
More info please check the Customize which files are ignored by version control from MSDN Link:Add files to the server