Victor's Blog

Live as if you were to die tomorrow. Learn as if you were to live forever


How to exclude files from TFS Source Control?

If you want to add your files or folders to the exclusion list in the TFS source control, here is the registry keys you need to change:
Per-User: HKCU\Software\Microsoft\VisualStudio\<version>\TeamFoundation\SourceControl\AddOptions
Per-Machine: HKLM\Software\Microsoft\VisualStudio\<version>\TeamFoundation\SourceControl\AddOptions
where <version> is the VS version: 
For TFS2008 “9.0”
For TFS2010 "10.0"
And you can add your files/folders into ExcludeMasks key.
If the value is not already there, add a string value titled “ExcludeMasks” and set it to the exclusion list you would like to use.  If this value if found, it overrides the built-in defaults.
blog comments powered by Disqus