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 8802065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:59:38+00:00 2026-06-14T00:59:38+00:00

I am working with Visual Studio 2012 .NET 4.5 ASP.NET MVC 4 project that

  • 0

I am working with Visual Studio 2012 .NET 4.5 ASP.NET MVC 4 project that uses TFS for source control and TFS Build for continuous integration (CI).

I want to create functionality that on each check in the build number gets updated prior to the CI build is kicked off.

From research it seems that a custom activity can be created and integrated in TFS 2010 build template.

I have also seen examples of this can be achieved with MSBuild task.

I haven’t done work in this area before, so I am wondering which is the better approach or the recommended approach based upon the options open to me? In general when would I use MSBuild tasks as oppose to custom activity? For example, I will be looking to run FxCop and StyleCop against check ins also in the future, so I would like a common approach to this.

  • 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-14T00:59:39+00:00Added an answer on June 14, 2026 at 12:59 am

    In the case of incrementing the build number, I’d vote for the TFS Build Activity so that the implementation is not tied to your msbuild implementation. This allows you to easily apply the TFS workflow activity to any number of branches without tying it to the branches directly. In addition, it keeps your MSBuild project files clean of the task so that it isn’t mistakenly executed on developer machines.

    Holistically, I’d say that you need to take a variety of factors into account when deciding between MSBuild and Workflow activities:

    1 – Does MSBuild support the functionality out of the box (like Code Analysis/FxCop)?

    2 – Does the build step need to run on developer boxes as well as servers (StyleCop/FxCop)?

    3 – Does the build step need to interact with the TFS API or source control directly (checking out/in a version file for incrementing)?

    4 – Are you going to change build job schedulers later to something free (for example, Jenkins)?

    It’s the combination of these things that determines the implementation of any given tool integration in my book. I’d implement FxCop, StyleCop and any other tool that should be run on a developer box build via MSBuild. I’d implement build steps such as version incrementing, bin-placing and CI deployment invocation (for example, deployment of a SharePoint webpart as a post-build step) via a Code Activity or some scriptware.

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

Sidebar

Related Questions

I'm working in an Asp.net MVC 4 project in Visual Studio 2012, when I
Visual Studio 2012 - ASP.net - MVC 4 I am having troubles displaying an
I'm running Visual Studio 2010 Ultimate and working on a MVC 3 project. I
I'm having a problem in an ASP.NET C# MVC project that we're doing. We're
OS: Windows 7 Home Premium Compiler: Visual Studio 2012 Language: ASP.net C# 4 Additional
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I am working in Visual Studio 2005, .NET 2.0. I need to write an
Working with Visual Studio 6 (VC++ 6.0) I'm using an ActiveX datepicker control which
When working with Visual Studio and adding a reference to a project you are
When working with Visual Studio, I always see that @ character when selecting font

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.