Automating the creation of Team Projects

Brian Harry

Since I announced the ability to automate the creation of Team Projects in my TFS SP1 feature set post and my March Power Tools post, I’ve gotten several questions about the format of the XML file you need to create and pass to:

tfpt createteamproject /settingsfile:”filename.xml”

I’ve attached the XML schema to this blog post and included a sample settings file.

<?xml version=”1.0″ encoding=”utf-8″?>
<Project xmlns=”ProjectCreationSettingsFileSchema.xsd”>

    <TFSName>A Valid TFS server</TFSName>

    <LogFolder>
      c:\RemoteTFSProjectStarte
    </LogFolder>

    <ProjectName>
      Batch Project Creation Demo 23
    </ProjectName>
    <ProjectSiteTitle>
      <!– default to project name if not specified –>
      Batch Project Creation Demo 23   
    </ProjectSiteTitle>
    <ProjectSiteDescription>
      <!– default to empty string if not specified –>
      Project Description
    </ProjectSiteDescription>
    <SccCreateType>
      <!– none | new | branch –>
      Branch
    </SccCreateType>
    <SccBranchFromPath>
      <!– string.Empty for none and new; supplied for branch –>
      $/test44
    </SccBranchFromPath>
    <ProcessTemplateName>
      MSF for Agile Software Development – v4.2
    </ProcessTemplateName>
</Project>

Hopefully this helps make it more clear,

Brian

ProjectCreationSettingsFileSchema.xsd

0 comments

Discussion is closed.

Feedback usabilla icon