Forbidden Patterns Check-In Policy in TFS 2010

前端 未结 2 787
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 14:39

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

相关标签:
2条回答
  • 2021-01-05 15:10

    Here's a set of expressions we use that work. We have the December 2011 Team Foundation Power Tools installed, which is where the Forbidden Patterns Policy feature comes from, not from a base TFS 2010 install.

    .*/[Bb]in/.*

    .*/[Pp]ackages/.*

    .*/[Oo]bj/.*

    .*/_[Rr]eshar[Pp]er./.*

    \.((?i)suo$)

    \.((?i)user$)

    thumbs\.db

    I also found another site that has a good write-up with example patterns.

    0 讨论(0)
  • 2021-01-05 15:17

    After playing around for a while I found a working solution for excluding *.config files (derived from the following blog link text)

    ^(.+\.config$)

    Please don't ask me why it's the way it is, I don't really get it myself, especially the part with '$)' (')$' does not work!)

    0 讨论(0)
提交回复
热议问题