Visual Studio 2015 TFS .tfignore 文件

2023-12-14

我想忽略 Visual Studio 2015 解决方案中的文件夹(及其内容)签入 tfs.

我在项目的根目录中创建了一个名为“.tfignore”的文件,其中包含我要排除的文件夹。

该文件的内容如下所示:/Dist

这根本不起作用。即使我添加*.cs对于该文件,没有任何内容被排除。

有人知道问题出在哪里吗?我如何以有效的方式连接它?


首先,请确保您的.tfignore文件创建没有任何问题。该文件没有任何后缀。创建它的一种方法建议您将 new.txt 文件重命名为"tfignore."它将自动更改为正确的 .tfignore 文件。

您还可以使用auto 自动生成.tfignore 文件,请按照以下步骤操作:

  1. 在“待处理的更改”页面的“已排除的更改”部分中,选择 检测到的更改链接。

pending changes, Detected changes link , which counts the number of adds, in this case 50003 add(s) (I have a busy directory clearly!)

将出现“升级候选人更改”对话框。

  1. 选择一个文件,打开其上下文菜单,然后选择忽略此本地文件 项、按扩展名忽略、按文件名忽略或按文件夹忽略。

the promote candidate changes dialog opens. right-clicking an item in its list includes options like "Ignore by extension *.js"

  1. 选择“确定”或“取消”关闭“升级候选人更改”对话框 盒子。
  2. .tfignore 文件出现在包含的更改部分 待定更改页面。你可以打开这个文件并修改它以满足 您的需求。

the .tfignore is automatically created by Visual Studio  and appears in pending changes with the "add" notation, suggesting you will commit it

更多信息请查看自定义版本控制忽略哪些文件来自 MSDN 链接:添加文件到服务器

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Visual Studio 2015 TFS .tfignore 文件 的相关文章

随机推荐