Sometimes it is required to select specific labeled/change set code for build. For this in Visual Studio Team System(VSTS) 2008 there is one proprty called GetVersion. Specify GetVersion property in TFSBuild.proj XML file anywhere within <PropertyGroup> </PropertyGroup>
Syntax for Changeset -
<PropertyGroup>
<GetVersion>Cxxxx</GetVersion>
<!-- where xxx is your changeset number -->
</PropertyGroup>
Syntax for Label-
<PropertyGroup>
<GetVersion>Lxxxx</GetVersion>
<!-- where xxx is your Label defined in TFS-->
</PropertyGroup>
Syntax for Latest Version-
<PropertyGroup>
<GetVersion>T</GetVersion>
<!-- T is the default property to get latest sources--> </PropertyGroup>
Syntax for Workspace version -
<PropertyGroup>
<GetVersion>Wworkspacename;owner</GetVersion>
</PropertyGroup>
Showing posts with label VSTS 2008. Show all posts
Showing posts with label VSTS 2008. Show all posts
How to Get Specific Labeled (Or specific Changeset) code for build To Build in VSTS 2008
Posted by trish Labels: build, changeset, Label, team build, Visual Studio Team System, VSTS 2008
Subscribe to:
Posts (Atom)