Visual Studio 2015 TFS .tfignore 文件 [英] Visual Studio 2015 TFS .tfignore file

查看:31
本文介绍了Visual Studio 2015 TFS .tfignore 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想忽略 Visual Studio 2015 解决方案中的一个文件夹(及其内容),因为它被签入到 tfs 中.

I want to ignore a folder (and its content) in a visual studio 2015 solution from beeing checked-in into tfs.

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

I created a file called '.tfignore' in the root of the project that is containing the folder I want to exclude.

文件内容如下:/Dist

这根本行不通.即使我将 *.cs 添加到文件中,也不会排除任何内容.

This is not working at all. Even if I add *.cs to the file, nothing gets excluded.

有人知道问题出在哪里吗?我如何以一种有效的方式将其连接起来?

Does somebody know where the problem is? How do I wire this up in a working way?

推荐答案

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

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.

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

You can also use the auto automatically generated .tfignore file, follow below steps:

  1. 在 Pending Changes 页面的 Excluded Changes 部分,选择检测到的更改链接.

将出现提升候选更改"对话框.

The Promote Candidate Changes dialog box appears.

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

  1. 选择确定"或取消"关闭提升候选更改"对话框盒子.
  2. 一个 .tfignore 文件出现在待定更改页面.你可以打开这个文件并修改它以满足您的需求.

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

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

这篇关于Visual Studio 2015 TFS .tfignore 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆