Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:05:53+00:00 2026-05-29T04:05:53+00:00

i am about to write a custom check in policy for Tfs. the idea

  • 0

i am about to write a custom check in policy for Tfs.

the idea will be that base on the user privilege – he will be able to create disable the policy.

the user will have the option to Edit the policy.

  1. does anybody familiar with a good example for create EDIT function (open new Dialog, set the policy properties…)

  2. I am looking for best practice for retrieve the users privs. it Can’t be on a separated file – in need it to be generic for some Tfs projects , where should i store the Data?
    at the tfs DB?, maybe via web service ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:05:53+00:00Added an answer on May 29, 2026 at 4:05 am

    When I had to write a custom check-in policy, I based it on LogSubstPol (code at http://logsubstpol.codeplex.com/)

    LogSubstPol includes an edit dialog, and then saves the settings as a file in TFS. In my setup it made sense to have a consistent set of settings across all team projects, so I changed it from writing the settings per-project to using a global file at a known location in TFS. By saving it to TFS the preferences are version controlled, but you do have to have a file somewhere which isn’t related to your source code.

    Some things to be aware of before writing the policy (these are all problems I’ve come across, whether they are problems to you depends on your scenario):

    1. Any user can override the policy at any time, and I don’t believe you can stop users doing this.
    2. Policies have to be added to every team project.
    3. You have to have a deployment strategy for the policy which will require manual intervention on each computer. I went with a copy method like LogSubstPol used, but I believe there is a opt-in setting with the TFS Power Tools which allows each computer to download new checkin policies automatically. (if you don’t have the policy installed on the computer you do the checkin it gives a policy failure with an internal error but doesn’t make it clear to the user what the actual problem is)
    4. Policies are not run at all in TFS2010 if checking in files over multiple team projects (this is a known bug in TFS2010)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to write a little GUI app that will sit in the system
When I'm about to write a short algorithm, I first check in the base
I’m trying to write a custom TCP based long polling server that will serve
I am about to write junit tests for a XML parsing Java class that
I'm about to write a Scala command-line application that relies on a MySQL database.
I'm about to write a Wrapper for a COM interop IStream so that code
I want to write a custom control that's used like this: <HorizontalTick>Some string</HorizontalTick> It
I'm trying to write a custom validation class that validates that an email is
I have a requirement to build a custom multiselect box with jquery that will
I am about to write a front end app, which will be used as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.