In the Release Candidate, we have added the ability to do the following:
The steps aren’t pretty, but a lot better than what they were before. We are working on a power tool to make it easier for RTM.
There are basically two steps:
Here is how to construct the XML file for each scenario:
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="ProjectCreationSettingsFileSchema.xsd">
<TFSName>TFSURL/COLLECTION</TFSName> <LogFolder>LOGFOLDER</LogFolder> <ProjectName>TEAMPROJECT</ProjectName> <AddFeaturesToExistingProject>true</AddFeaturesToExistingProject> <ProjectReportsEnabled>false</ProjectReportsEnabled> <ProjectSiteEnabled>true</ProjectSiteEnabled> <ProjectSiteWebApplication>SHAREPOINTWEBAPP</ProjectSiteWebApplication> <ProjectSitePath>PORTALPATH</ProjectSitePath> <ProjectSiteTitle>TEAMPROJECT</ProjectSiteTitle> <ProjectSiteDescription>SITEDESCRIPTION</ProjectSiteDescription> <ProcessTemplateName>PROCESSTEMPLATE</ProcessTemplateName>
<TFSName>TFSURL/COLLECTION</TFSName>
<LogFolder>LOGFOLDER</LogFolder>
<ProjectName>TEAMPROJECT</ProjectName>
<AddFeaturesToExistingProject>true</AddFeaturesToExistingProject>
<ProjectReportsEnabled>false</ProjectReportsEnabled>
<ProjectSiteEnabled>true</ProjectSiteEnabled>
<ProjectSiteWebApplication>SHAREPOINTWEBAPP</ProjectSiteWebApplication>
<ProjectSitePath>PORTALPATH</ProjectSitePath>
<ProjectSiteTitle>TEAMPROJECT</ProjectSiteTitle>
<ProjectSiteDescription>SITEDESCRIPTION</ProjectSiteDescription>
<ProcessTemplateName>PROCESSTEMPLATE</ProcessTemplateName>
</Project>
Field
What it means
TFSURL
The URL to the TFS Server.
Example: “http://tfsserver:8080/tfs”
COLLECTION
The name of the collection
Example: “DefaultCollection”
LOGFOLDER
The folder to create the logfile in. The log file will be named TEAMPROJECT.log
Example: “C:\”
TEAMPROJECT
The name of the team project to create the site for
Example: “My Project”
SHAREPOINTWEBAPP
The Friendly Name (not the URL) to the SharePoint Web Application. NOTE: By default, the URL and the friendly name are the same.
Example: “TFS SharePoint”
PORTALPATH
The relative path to where you want the site to be created.
Exampe: “sites/DefaultCollection/MyProject”
SITEDESCRIPTION
The site description for the SharePoint site
Example: “The ‘My Project’ Portal Site”
PROCESSTEMPLATE
The process template that will be used to for creating the project portal
Example: “MSF for Agile Software Development v5.0 – RC”
This will create the project portal from the process template, as-if it were created at project creation time, including deploying documents, binding Excel workbooks, enabling SharePoint dashboards.
<TFSName>TFSURL/COLLECTION</TFSName> <LogFolder>LOGFOLDER</LogFolder> <ProjectName>TEAMPROJECT</ProjectName> <AddFeaturesToExistingProject>true</AddFeaturesToExistingProject> <ProjectReportsEnabled>true</ProjectReportsEnabled> <ProjectReportsForceUpload>false</ProjectReportsForceUpload> <ProjectSiteEnabled>false</ProjectSiteEnabled> <ProcessTemplateName>PROCESSTEMPLATE</ProcessTemplateName>
<ProjectReportsEnabled>true</ProjectReportsEnabled>
<ProjectReportsForceUpload>false</ProjectReportsForceUpload>
<ProjectSiteEnabled>false</ProjectSiteEnabled>
Same as above
This will create the reports site from the process template, as-if it were created at project creation time.
To do this, follow the same steps as the Create Reports example, except for this small change to the XML file (change “false” to “true” for ProjectReportsForceUpload):
<TFSName>TFSURL/COLLECTION</TFSName> <LogFolder>LOGFOLDER</LogFolder> <ProjectName>TEAMPROJECT</ProjectName> <AddFeaturesToExistingProject>true</AddFeaturesToExistingProject> <ProjectReportsEnabled>true</ProjectReportsEnabled> <ProjectReportsForceUpload>true</ProjectReportsForceUpload> <ProjectSiteEnabled>false</ProjectSiteEnabled> <ProcessTemplateName>PROCESSTEMPLATE</ProcessTemplateName>
<ProjectReportsForceUpload>true</ProjectReportsForceUpload>