-
Book Overview & Buying
-
Table Of Contents
Microsoft Team Foundation Server 2015 Cookbook
By :
In this recipe, you'll learn how to get the name of the Process Template used to create a Team Project.
Follow the steps in the Acquiring TFS object model from the NuGet Gallery recipe to create a project in Visual Studio and add the TFS NuGet packages to this project.
First, connect to TFS programmatically. As a first step, a connection to the TFS needs to be established. This can be done using the following snippet:
var tfs = TfsTeamProjectCollectionFactory
.GetTeamProjectCollection(new Uri("http://tfs2015:8080/tfs"));
tfs.EnsureAuthenticated();To obtain the Process Template details for a Team Project, we need an instance of the VersionControlServer service and the Now instance to get ICommonServerService. The VersionControlServer service is used to get the project details, specifically, it is AbsoluteUri that we are after. AbsoluteUri for the Team Project is used by ICommonServerService...
Change the font size
Change margin width
Change background colour