Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One of TFS undervalued features is <a href="http://msdn.microsoft.com/en-us/library/ms181378.aspx" rel="noreferrer"><strong>cloaking</strong></a>. Like SVN's <code>ignore</code>, cloaking will let you ignore a certain folder or files.</p> <h2>Cloaking a Folder</h2> <p>Cloaking a folder is easy: just right click a folder on the source control explorer and select <code>Cloak</code></p> <h2>Cloaking a File</h2> <p>The UI doesn't expose cloaking on a single file, but sometimes you may want to cloak a certain file like <code>app.config</code>.</p> <ol> <li><p>Go to <code>File</code> > <code>Source Control</code> > <code>Workspaces</code></p></li> <li><p>Select your workspace and click <code>Edit</code>.</p></li> <li><p>Under the working folders, and a new entry with status <code>Cloaked</code> and enter the full server path of the file you want to cloak. (E.g.: <code>$/MyTeamProject/Dev/Src/SomeProject/app.config</code>)</p></li> </ol> <p><img src="https://i.stack.imgur.com/Ytcub.png" alt="Cloaking a file"></p> <hr> <h2>Using Local Workspace .tfignore file (In TFS 2012, 2013, 2015 and up)</h2> <p>In <a href="https://msdn.microsoft.com/en-us/library/bb892960.aspx" rel="noreferrer">Local Workspace</a>, use you can use <a href="https://msdn.microsoft.com/en-us/library/ms245454.aspx#tfignore" rel="noreferrer"><code>.tfignore</code></a> file (the equivalent of <code>.gitignore</code> for Git)</p> <pre><code>.tfignore file 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 </code></pre> <h2>Blocking by Permissions</h2> <p>Another approach is deny check-in on the file (requires administrative privileges):</p> <ol> <li><p>Right click the file > click <code>Properties</code> > <code>Security</code></p></li> <li><p>Add your user and mark <code>Deny</code> on the <code>Check In</code> permission.</p></li> </ol> <p><img src="https://i.stack.imgur.com/YPGZi.png" alt="Deny Check In"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload