Obviously, you will need to adjust this for your specific TFS source structure.
Regarding the issue with the build not recognizing the TFS cmdlets, try your command in the Windows PowerShell x86 command prompt on the build agent. If it still fails you need to install the TFS cmdlets and/or fix PowerShell to run in 32 bit mode. See stackoverflow.com/questions/35292971
Asked in February 2016Viewed 3,644 timesVoted 5Answered 1 times