4

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?

Norman H
  • 2,248
  • 24
  • 27
Imran Rizvi
  • 7,331
  • 11
  • 57
  • 101
  • If it is project item you just can open projectname.csproj.vspcss file and write number of files to exclude and links to them. "NUMBER_OF_EXCLUDED_FILES" = "1" "EXCLUDED_FILE0" = "web.config" – Denis Agarev Mar 17 '12 at 09:47
  • 3
    Use [Cloaking](http://stackoverflow.com/a/9742947/147211) – KMoraz Mar 17 '12 at 09:50
  • The folder is from TFS but the files are generated at local system. Maximum Number of files is unlimited. – Imran Rizvi Mar 17 '12 at 09:51
  • possible duplicate of [Forbidden Patterns Check-In Policy in TFS 2010](http://stackoverflow.com/questions/2741412/forbidden-patterns-check-in-policy-in-tfs-2010) – Mohamad Shiralizadeh Jun 09 '15 at 05:49

2 Answers2

7

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)\\$
KMoraz
  • 14,004
  • 3
  • 49
  • 82
1

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.

Norman H
  • 2,248
  • 24
  • 27