How to get tf.exe (TFS command line client)?

后端 未结 8 1632
悲&欢浪女
悲&欢浪女 2020-11-30 23:23

What\'s the minimum amount of software I need to install to get the \'tf.exe\' program?

相关标签:
8条回答
  • 2020-12-01 00:02

    You need to install Team Explorer, it's best to install the version of Team Explorer that matches the version of TFS you are using e.g. if you're using TFS 2010 then install Team Explorer 2010.

    2012 version http://www.microsoft.com/en-gb/download/details.aspx?id=30656

    2013 version http://www.microsoft.com/en-us/download/details.aspx?id=40776

    2019 version https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=TeamExplorer&rel=16

    You also might be interested in the TFS power tools. They add some extra command line features (using tfpt.exe) and also add some extra IDE features.

    0 讨论(0)
  • 2020-12-01 00:05

    For reference: these are the required DLLs for Visual Studio 2017 (as did @ijprest for the VS 2010)

    TF.exe
    TF.exe.config
    Microsoft.TeamFoundation.Client.dll
    Microsoft.TeamFoundation.Common.dll
    Microsoft.TeamFoundation.Core.WebApi.dll
    Microsoft.TeamFoundation.VersionControl.Client.dll
    Microsoft.TeamFoundation.VersionControl.Common.dll
    Microsoft.TeamFoundation.VersionControl.Controls.dll
    Microsoft.VisualStudio.Services.Client.Interactive.dll
    Microsoft.VisualStudio.Services.Common.dll
    Microsoft.VisualStudio.Services.WebApi.dll
    

    They will be in my base VM image. I'm going to use it to pull the latest deployment scripts from VC to a temporary local workspace folder when installing a new server.

    tf workspace /new ... 
    tf workfold /map ...
    tf get "%WorkSpaceLocalFolder%" /recursive
    tf workfold /unmap 
    tf workspace /delete
    
    <run deployment scripts from "%WorkSpaceLocalFolder%" >
    
    rmdir "%WorkSpaceLocalFolder%"
    

    (Sorry to post this as an answer, but I don't have enough reputation to comment, which I believe it should have been)

    0 讨论(0)
提交回复
热议问题