TFS 2015でプロジェクト内の領域を作成します。領域が追加されると、その領域の作業項目はチームのバックログに表示されません。デフォルトでは領域が選択されていないため、この場合はtestareaが選択されていないためです。ここでAPIを使用してTFSで領域選択を設定する方法
は、私がこれまでにエリアを作成した方法は次のとおりです。それはチェックマークが表示されるように
/*
* Grabs the necessary connections to the server, as well as the required
* clients
*/
static void loadFromServer()
{
// Connect to TFS
VssConnection connection = new VssConnection(new Uri(collectionUri),
new VssCredentials());
// Get the project collection that the project is a part of
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri
(collectionUri));
// Get the version control server from the team project collection
VersionControlServer vcs = tpc.GetService<VersionControlServer>();
string projectName = "SomeProject";
// Get the project from the version control server
static TeamProject project = vcs.GetTeamProject(projectName);
// Get the ICommonStructureService to create the area
static ICommonStructureService commonStructures =
tpc.GetService<ICommonStructureService>();
}
/*
* Create the new area
*/
static void createArea()
{
// Root area of the project
NodeInfo rootAreaNode = commonStructures.GetNodeFromPath(projectName
+ "\\Area");
string areaName = "SomeArea";
// Create the new area node
string newAreaUri = commonStructures.CreateNode(areaName,
rootAreaNode.Uri);
Console.WriteLine(areaName + " created.");
}
は、どのように私は、私が作成した新しい領域を選択するに行きますかその左側のチェックボックスに、私のチームがバックログ内の作業項目を表示できるようにしますか?