如何让 TFS 忽略具有特定名称的所有文件夹 [英] How to get TFS to ignore all folders with a certain name

查看:34
本文介绍了如何让 TFS 忽略具有特定名称的所有文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 Visual Studio 2015 开始,所有解决方案都会创建一个隐藏的.vs"文件夹,其中包含各种内容,例如 applicationhost.config、.suo 文件等...

Starting with Visual Studio 2015 all solutions create a hidden ".vs" folder with various things under it like applicationhost.config, .suo files, etc...

仅供参考,我正在运行 TFS 2013 更新 4,但我无法控制系统,因此我无权升级系统.

For informational purposes I'm running TFS 2013 update 4 and I'm not in control of the system so I have no access to upgrade the system.

我知道我可以转到每个解决方案文件夹并在那里添加一个带有.vs*"或类似内容的 .tfsignore 文件以忽略该文件夹,但我正在寻找的是如何在根目录添加 .tfsignore将忽略所有.vs"文件夹及其下的文件,无论它们位于各个子目录中的哪个位置.

I know I could go to every solution folder and add a .tfsignore file there with ".vs*" or something similar to ignore the folder but what I'm looking for is how to add a .tfsignore at the root that will ignore all ".vs" folders and the files under them no matter where they are located in the various sub directories.

谢谢.

推荐答案

您可以将 .vs 声明放在 .tfignore 文件中,该文件位于所有解决方案文件.这将优先于较低的文件.

You can put a .vs declaration in a .tfignore file that is in the parent folder of all solution files. This will take precedence over lower files.

不需要诸如 * 之类的通配符.此外,.tfignore 文件使用反斜杠 \ 而不是 /.

No wildcards such as * are required. Also, .tfignore files use backslashes \ instead of /.

这篇关于如何让 TFS 忽略具有特定名称的所有文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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