尽管安装了 TFS Power Tools,为什么 tfpt.exe 丢失?

has*_*any 2 tfs tfs-power-tools

我在 Windows 10 上使用 Visual Studio community 2017,我安装了 TFS power tools 2011、2013、2015(我读到以前的 Power Tools 已集成到 TFS 2017)但任何安装目录中都没有 tfpt.exe。

jes*_*ing 5

When you install Team Foundation Power Tools it will warn you, but won't block you when it doesn't detect the required version of Visual Studio. Each version is picky, so the TFPT 2015 will require Visual Studio 2015 and the TFPT 2013 will require you to install Visual Studio 2013.

It should be sufficient to install the Team Explorer of that version only, but if the installer still complains, you may need to install the full Visual Studio:

需要的功能先决条件

There is no way to force the installation. Which is unfortunate, as in many cases it's enough to add the contents of the TeamFoundation Nuget Packages.

Upon successful installation of the power tools, including tfpt.exe should be found under:

C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\
Run Code Online (Sandbox Code Playgroud)

If you're looking for Undo Unchanged, then you may also be interested in the TFS Source Control Explorer Extensions. It adds Undo-unchanged to the Pending Changes window in Visual Studio. There are versions available for every version of Visual Studio since 2010.

You could also consider switching to a Local Workspace, it automatically detects when a file is returned to its original state and will automatically mark it as Unchanged. You will lose the ability to lock files though. Some people hate that, for many, it's a blessing. I'll let you decide. For me, it was a nice step-up to switching to Git later.