I'm new to C # (from Java) and trying to write a report that counts the number of code reviews completed.
I have no problem repeating code view requests. When viewing code is associated with a set of changes, I use the following code, which works fine:
Changeset changeset = versionControlServer.GetChangeSet(int.Parse(
workItem.Fields["Associated Context"].Value.ToString()), true, true);
I am trying to make an equivalent using Shelvesets.
I can iterate through all the shelves using the following code:
foreach (Shelveset shelveset in versionControlServer.QueryShelvesets(null,null) {
Console.WriteLine(shelveset.Name);
}
Unfortunately, when I try to execute the same command based on a previously typed name, I get nothing. The following code returns an empty list.
foreach (Shelveset shelveset in versionControlServer.QueryShelvesets("ShelvesetName",null))
{
Console.WriteLine(shelveset.Name);
}
- , , versionControlServer.QueryShelvesets("ShelvesetName",null)
, CodeReviewRequest?