Creating Fake builds in TFS Build 2010 using the command line

In TFS it’s possible to create "faked" builds, without actually running them. You can read about it in this blog post by Jason Prickett.

Main scenarios are:

  • Using a different build tool than TFS Build
    (by creating faked builds will let you use some of the great TFS features).
  • Creating sample data to show off TFS functionality

You can create "faked" builds on the command line using the following tool.


TfsCreateBuild.exe /collection:http://tfsserver:8080/tfs/MyCollection
/project:TeamProject /builddefinition:"Daily Build"

(replace parts in blue)

Optional parameters:

  • /status:<value> Status of the build (Succeeded, Failed, Stopped, PartiallySucceeded)
  • /flavor:<name> Flavor of the build (to track test results against, default: Debug)
  • /platform:<name> Platform of the build (to track test results against, default: x86)
  • /target:<name> Target of the build (shown on build report, default: default)
  • /localpath:<path> Local path of solution file. (e.g. Solution.sln)
  • /serverpath:<path> Version Control path for solution file. (e.g. $/proj/src/app.sln)
  • /compileerrors:# Number of compilation errors.
  • /compilewarnings:# Number of compilation warnings.
  • /analysiserrors:# Number of static code analysis errors.
  • /analysiswarnings:# Number of static code analysis warnings.
  • /droplocation:<path> Location where builds are dropped.
  • /buildlog:<path> Location of build log file. (e.g. \server\folder\build.log)
  • /changesets:<ID> Changesets to associate (e.g. “/changesets:13,14,15”)*
  • /workitems:<ID> Work Items to associate (e.g. “/workitems:102,103”)*

(*) The parameters /changesets and /workitems are only available in the TE 2013 compatible version.

The result:

No, TFS cannot compile Win 3.1 apps...

Download the tool from here:


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>