Thursday, June 28, 2012

TFS: Automatically exclude from Source Control

When you try to add items to TFSsource control, it automatically excludes certain folders and files:


But what if you want to change the default list of excluded folders and files? In Visual Studio 2010 you can do this by changing the following two registry keys:

  1. HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\AddOptions\ExcludeMasks
  2. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\AddOptions\ExcludeMasks

Add or remove some items from the list separated by a semicolon. Next time you’ll open Visual Studio, the list will be changed.


1 comment:

Anonymous said...

This exclusion list is not displayed in my installation of vs2012 pro.