Preventing TFS from adding Temporary files

倾然丶 夕夏残阳落幕 提交于 2019-12-21 05:30:56

问题


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

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

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

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

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

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?


回答1:


Use the Forbidden Patterns Policy included in the TFS Power Tools

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

\.((?i)suo$)

The following regex prevents bin, obj and debug folders from being checked-in:

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



回答2:


If you are using Team Explorer Everywhere you can use this document to find out how to configure the policies directly through the Eclipse plugin.



来源:https://stackoverflow.com/questions/9748866/preventing-tfs-from-adding-temporary-files

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