Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get TFS to ignore all folders with a certain name

Starting with Visual Studio 2015 all solutions create a hidden ".vs" folder with various things under it like applicationhost.config, .suo files, etc...

For informational purposes I'm running TFS 2013 update 4 and I'm not in control of the system so I have no access to upgrade the system.

I know I could go to every solution folder and add a .tfsignore file there with ".vs*" or something similar to ignore the folder but what I'm looking for is how to add a .tfsignore at the root that will ignore all ".vs" folders and the files under them no matter where they are located in the various sub directories.

Thanks.

like image 766
Aaron Stainback Avatar asked Oct 21 '15 16:10

Aaron Stainback


People also ask

How do I use Tfignore?

You can either manually create a . tfignore file in your solution, or you can add one automatically in Visual Studio by clicking the “Detected” link and then right-clicking on the files under the Excluded Changes list and selecting one of the Ignore options: Creating a tfignore file using the IDE.


1 Answers

You can put a .vs declaration in a .tfignore file that is in the parent folder of all solution files. This will take precedence over lower files.

No wildcards such as * are required. Also, .tfignore files use backslashes \ instead of /.

like image 58
Kevin Ghadyani Avatar answered Oct 20 '22 23:10

Kevin Ghadyani