Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install TFS Command Line Tools for Visual Studio 2017

I've installed visual studio 2017 enterprise and the new stand alone Team Explorer 2017. There doesn't seem to be an option in either to add tfs command line tools or tfs shell integration. this implies that it's an extension, but I haven't found anything on the visual studio marketplace. I'd prefer not to reinstall 2015 to use the 2015 power tools, but there is no tf.exe anywhere on my box.

like image 900
Miniver Cheevy Avatar asked Jun 29 '17 10:06

Miniver Cheevy


People also ask

How do I get the Visual Studio Command Prompt in 2017?

Open Visual Studio. On the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.

Where is TF EXE in Visual Studio 2017?

On the 2017 version of Visual Studio Community, it can be found in a location similar to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe .

Where is TF EXE located?

Here are some versions: VS 2017 - C:\Program Files (x86)\Microsoft Visual Studio\2017<EDITION>\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer. VS 2013 / 2015 - C:\Program Files (x86)\Microsoft Visual Studio \Common7\IDE.


1 Answers

According to TFS 2017 RTW release notes, most of the previous Power Tools have been integrated into TFS 2017, that means no separate power tools, you don't need to install that separately. The Process Template Editor is one that has not been integrated, but you can get it in the Visual Studio Marketplace.

Visual Studio 2017 users: The tf.exe binary is no longer in a fixed location in the Visual Studio install path as in previous releases (for example, C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE). Scripts using tf.exe should not hardcode a path to the file based on the Visual Studio 2017 install path.

Just as mentioned by Dave, the tf.exe should be under the path :

C:\Program Files (x86)\Microsoft Visual Studio\2017\{Version: Enterprise,Professional,Community}\Common7\IDE\CommonExtensions\Microsof‌​t\TeamFoundation\Tea‌​m Explorer\TF.exe

In most cases, you run the version control command in the context of a directory that is mapped in the workspace. For example, $/SiteApp/Main/ is mapped to c:\\code\\SiteApp\\Main\\. To get the latest version of all items in the workspace:

c:\code\SiteApp\Main\SolutionA>tf get
like image 191
Andy Li-MSFT Avatar answered Oct 03 '22 01:10

Andy Li-MSFT