Is there a way to apply a label to a TFS 2008 project/directory with C#?
I know of the command line program:
tf label SampleLabel $/Project1/Source/* /recursive /server:TFS1
But i want to do this with C# code, and do NOT want to run TF.exe commandline from C#.
The following code snippet labels all changes in a particular changeset. It should be straightforward to change it to label all files in a particular path. Instead of iterating through the changeset, just do a
vcServer.GetItems("$/Project1/path", RecursionType.Full)and iterate through them.