TFS Build specific changeset and deploy it using the changeset number

Konrad picture Konrad · Nov 3, 2011 · Viewed 12.8k times · Source

I have a Build Definition to build a solution on my TFS. This works well, but it always builds the latest version.

  1. How can I force to build a specific changeset from the past?

  2. How can I use/pass this number to the "MSBuild Arguments" to use it there for deployment?

Answer

Dylan Smith picture Dylan Smith · Nov 3, 2011

When you queue up the build from Team Explorer, in the Parameters tab one of the Advanced arguments is get version.

Note: I think you need to specify this in the form C123 where 123 is the changeset number.