I am using the Workspace class from the Microsoft.TeamFoundation.Client namespace to get the latest code for a particular branch from a Team Foundation Server.
workspace.Get(new string[] { SelectedRelease.ServerPath }, VersionSpec.Latest,
RecursionType.Full, GetOptions.GetAll);
After I get the latest code, I build the relevant solution programmatically. The code can be found in the post here.
My question is ‘how can I find out when the Workspace.Get method is complete? I can’t build it until it has finished downloading. I thought about monitoring the solution folder, but I don’t know which order the files are built in.
This question may be of use to you:
Using the TFS 2010 API to subscribe to Workspace Events