TFS commands in PowerShell script -
i have powershell script written in version 1.0. in existing old script need facility latest code of project tfs. have tfs client on machine , lets me use tfs command line. have created tfs command line comments latest tfs. these commands run successfuly command propmt.
now need include these tfs commands in old poweshell script. need know if doable? if yes how.
thanks.
one option run tf.exe program necessary arguments within powershell script, other executable:
ps> & "$env:programfiles\microsoft visual studio 10.0\common7\ide\tf.exe" @("workspace", "/new", "ws1", "/noprompt", "/login:foo,bar", "/collection:baz/tfs")
or use tfs powershell cmdlets included in tfs power tools:
ps> add-pssnapin microsoft.teamfoundation.powershell ps> get-tfschangeset -latest -server "http://mytfsserver"
Comments
Post a Comment