Forbidden Patterns Check-In Policy in TFS 2010

Posted by Jaxidian on Stack Overflow See other posts from Stack Overflow or by Jaxidian
Published on 2010-04-29T23:32:46Z Indexed on 2010/04/29 23:37 UTC
Read the original article Hit count: 1261

I've been trying to use the Forbidden Patterns part of the TFS 2010 Power Tools and I'm just not understanding something - I simply cannot get anything to change as I try to use this! I'm using the version that was released recently (I believe April 23, 2010), so it's not an old version.

First off, yes, I know it's regex based, so let's clear that doubt...

I have tried to block the following scenarios:

1) I have modified all of my T4 EF templates to generate files named EntityName.gen.cs. I then attempted to prevent TFS from wanting to check those files in. I used the regular expression \.gen\.cs\z and it didn't change a single thing! I even tried it without the \z and nadda!

2) I don't want app.config and web.config files to be checked-in by default because we have these things stored into app.config.base and web.config.base files that our build scripts use to generate our per-environment app.config and web.config files. As such, I tried the following regexes and again, nothing worked! web\.config\z, app\.config\z, web\.release\.config\z and web\.debug\.config\z.

What is it that I am screwing up with this?

© Stack Overflow or respective owner

Related posts about tfs

Related posts about tfs-power-tools