Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing TFS from adding Temporary files

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?

like image 695
Imran Rizvi Avatar asked Feb 22 '23 03:02

Imran Rizvi


2 Answers

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)\\$
like image 175
KMoraz Avatar answered Feb 26 '23 10:02

KMoraz


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.

like image 22
Norman H Avatar answered Feb 26 '23 11:02

Norman H