Add-Project

Introduction

The Add-Project cmdLet enables to create a project directly from a PowerShell host. Once the project is created, you can retrieve information in an object. The TFS server is obtained using the Get-TFS cmdlet.

Project Creation

Parameters

-tfs Team Foundation Server object
-ProjectName Name of the project to be created
-LogFolder Log file path
-ProjectSiteTitle WSS project site name
-ProjectSiteDescription WSS projet site description
SccCreateType Branch creation type New - None
-ProcessTemplateName ProcessTemplate name to be used

Sample

========================================================
Windows PowerShell
PowerShell for Team System
By Noham Choulant http://choulant.blogspot.com
========================================================

PsTFS > : $tfs = tfs colmar

PsTFS > : $p = Add-Project -tfs $tfs -ProjectName MyDemo -LogFolder c:\Temp -ProjectSiteTitle MyDemo -ProjectSiteDescription "Demo description" -SccCr
eateType new -ProcessTemplateName "MSF for Agile Software Development - v4.2"

System has started to create your team project. This may take a while. Please wait ...
The project creation log file with a name like ProjectCreation_2008-12-29_10.32.26.log has been created at C:\Users\Administrateur\AppData\Local\Temp\
2\, if you did not provide a log file folder.
Otherwise, please find the log file at your_log_folder\your_project_name.log

PsTFS > : $p

Uri                                               Name                                                                                         Status
---                                               ----                                                                                         ------
vstfs:///Classification/TeamProject/a1fa9207-4... MyDemo                                                                                   WellFormed


PsTFS > : $p | format-list


Uri    : vstfs:///Classification/TeamProject/a1fa9207-4dcc-4871-9041-d0c8e70099fe
Name   : MyDemo
Status : WellFormed

Last edited Nov 7, 2009 at 2:47 PM by pc152, version 6

Comments

No comments yet.