Build on specific labels
Is it possible to construct a new Team build type based not on the latest versions of the solutions in Team project, but to drill futher down and specify the specific version of those solutions that should be used for the build?
If I just follow the New Build Type wizard in VSTE it allows me to select solutions, but it does not allow me to tell which specific version of this solution to use and it always uses the latest versions for the build.
There are(and quite often) situations when I would like to use some old labeled versions of the one or two solutions that are included in the build.
May be there are some command line ways to specify which version of the solution to use for the build?
Thank you,
Simon Goldshmid
There is no automatic way to do it, the only thing which comes to my mind is develop your own custom build task and configure it to execute on the step "AfterGet" or "BeforeCompile" and retrieve the specific version you want in the workspace used by the build.
About giving the version in the command line there isn't also any way to do this, as far as I know.
Simon,
Get task that is called by Team Build to retrieve files has several parameters (by default latest version is retrieved). If you want to retrieve version by specific label, you may modify Get call as specified in the following blog post.
Additionally, if you want label name to be passed as a parameter to your build, there is rsp file that is part of Team Build type that may be modified to include relevant label name (and it relatively easy to use that label parameter as version specification for Get task).
As it is, you will be required to dig some MSBuild in Team Build type XML, but overall it appears there are good chances for you to automate that.
Yours truly,