Visual Studio 2015 TFS .tfignore file

ε祈祈猫儿з 提交于 2019-11-27 05:24:20
PatrickLu-MSFT

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:

  1. In the Pending Changes page, in the Excluded Changes section, choose the Detected changes link.

The Promote Candidate Changes dialog box appears.

  1. Select a file, open its context menu, and choose Ignore this local item, Ignore by extension, Ignore by file name, or Ignore by folder.

  1. Choose OK or Cancel to close the Promote Candidate Changes dialog box.
  2. A .tfignore file appears in the Included Changes section of the Pending Changes page. You can open this file and modify it to meet your needs.

More info please check the Customize which files are ignored by version control from MSDN Link:Add files to the server

If your .tfignore file is in the solution root folder, adding a \Dist to it will make TFS ignore the Dist folder only inside the root folder. For instance, if you create a Dist folder inside a subfolder (e.g any of the projects folder in the solution), it won't work.

In that case, you need to use just Dist rather than \Dist, then rule will aply to the .tfignore root folder and all its subfolders.

This only apply to folders.

Your file path slash is the wrong kind of slash, it should be a backslash \.

\Dist
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!