Install a Custom Site Template for Team Foundation Server


 

Add Template

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addtemplate -filename C:\tfs\XXX-VSTFS\XXXCMMI.stp -title VSTS_XXX_CMMI

Operation completed successfully.

IIS must be restarted before this change will take effect. To restart IIS, open
a command prompt window and type iisreset.

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>iisreset

Attempting stop…
Internet services successfully stopped
Attempting start…
Internet services successfully restarted

List Templates

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o enumtemplates

VSTS_MSFAgile – Language: 1033 – Site Template: _GLOBAL_#0 – Template Id: 1
VSTS_MSF_CMMI – Language: 1033 – Site Template: _GLOBAL_#1 – Template Id: 1
VSTS_XXX_CMMI – Language: 1033 – Site Template: _GLOBAL_#2 – Template Id: 1

Process Template

You can then reference the SharePoint site template by name in the WssTasks.XML for your Process Template

<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="SharePointPortal" name="Create Sharepoint Portal" plugin="Microsoft.ProjectCreationWizard.Portal" completionMessage="Project site created.">
    <taskXml>
      <Portal>
        <site template="VSTS_XXX_CMMI" language="1033" />

 

About wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: