从增加临时文件preventing TFS [英] Preventing TFS from adding Temporary files

查看:117
本文介绍了从增加临时文件preventing TFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个项目,是在结合工作TFS,这个项目给我的文件夹登录。

I am working on a Project that is bind in TFS, this project gives me a folder Log.

当我执行我的项目,并做一些测试才产生Log文件夹文本文件和商店。

When I execute my project and do some testing it generates text files and store in Log folder.

之后,当我尝试在这些文件中的文件被登记为TFS中的一个新的文件。检查

After that when I try to check in files those files are checked in as a new file in TFS.

我想TFS以排除这些文件。在那里我存储的临时文件夹是:

I want TFS to exclude these files. Folders where I store temp files are:


  1. \\网页\\ ErrorLogs

  2. \\网页\\ TEM preports

  1. \WebPages\ErrorLogs
  2. \WebPages\TempReports

有没有TFS的设置,我可以说,它不包括在TFS这个文件夹,但如果从服务器获取最新的?

Is there a setting in TFS where I can say it not to include this folder in TFS but Get latest from server if any?

是否有可能建立一个入住-政策这个问题?

Is it possible to create a Check-in-Policy for this problem?

推荐答案

使用故宫模式策略包含在<一个href=\"http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f/\">TFS电动工具

Use the Forbidden Patterns Policy included in the TFS Power Tools

下面的正则表达式prevents 被签入的文件:

The following regex prevents suo files from being checked-in:

\.((?i)suo$)

下面的正则表达式prevents OBJ 调试文件夹:

^\\(bin)|(obj)|(debug)\\$

这篇关于从增加临时文件preventing TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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