Download a Process Template Programatically

Can anybody help me with the code sample for downloading the specified Process Template as it is done by the Process Template Manager in VS Team Explorer.

Any ideas are also welcome.

[195 byte] By [NihalChand] at [2008-2-20]
# 1

Hello Nihal,

You can use the IProcessTemplates interface for this purpose. It has a method called GetTemplateData which will download the template to a temp file on the disk and return the name of that file. So for a given template name:

int index = processTemplates.GetTemplateIndex(templateName);
string templateFile = processTemplates.GetTemplateData(index);

The downloaded file is a .zip file that needs to be decompressed before it is used.

Hope this helps!

YogitaManghnani at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Process Templates...
# 2

Hello Yogita,

Thank you very much for such a quick response. I was looking into IProcessTemplates but could not figure out a way due to lack of documentation. Anyway, thank you very much for the help.

NihalChand at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Process Templates...

Visual Studio Team System

Site Classified