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

  • Home
  • SEARCH
  • 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 7849521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:33:05+00:00 2026-06-02T18:33:05+00:00

I run a fairly-large team (5 solutions, ~150 projects), using TFS2010 and gated check-ins.

  • 0

I run a fairly-large team (5 solutions, ~150 projects), using TFS2010 and gated check-ins. In our team, we mandate that each project import a file of our own called Common.Targets, which does a bunch of build-time stuff. I’ve instructed everyone on the team to do that, and wrote a wiki entry on it too.

However, people still forget to import common.Targets when adding a new project, causing all sorts of trouble after check-in.

Is there a way – an msbuild commandline, something I can put in my .sln’s, etc. – that such a project would fail to compile, and therefore would not pass the gated check-in?

  • 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-06-02T18:33:07+00:00Added an answer on June 2, 2026 at 6:33 pm

    2 options:

    1. As suggested by KMoraz, author a custom check-in policy (How To) which parses changed/added .csproj as XML and validates that they import Common.Targets.

      Con: Need to distribute this manually to all developers in the team, and manage updates if there are any.

    2. Author a custom CodeActivity (How To). It runs msbuild MSBuildEmitSolution=1, parses the resulting .sln.metaproj as XML to get the list of csproj files, and then validates them as above.

      Con: Developer only sees the error when his gated check-in fails.

    I decided to go with 2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly large webapp that I run on a Media Temple server.
We're using EF4 in a fairly large system and occasionally run into problems due
I am writing a fairly large C++ shared-object library, and have run into a
I'm fairly new to using MSSQL and have run into a weird problem. Given
I'm trying to write a fairly polymorphic library. I've run into a situation that's
I have a Python program that processes fairly large NumPy arrays (in the hundreds
We're using Maven/Surefire and Spring/Hibernate transactional tests for a fairly large web application. There
My team has recently converted a fairly large project to ARC. The conversion went
I need to run N slow calculations (where N is a fairly large number)
So, my issue is that I have a fairly large ASP.NET 3.5 project that

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.