How to find TF.exe installed by Visual Studio 2017 RC?


  • I have Visual Studio 2017 RC installed on two servers and the location of tf.exe command utility is different on each server.

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\1splm2or.ac4\

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\mh3pjr3w.dz2\

    Also, unlike previous version of Visual Studio there does not seem to be an environment variable like VS150COMNTOOLS set that would provide a consistent way to find it.

    This url states that

    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.

    So if we should not hard code the path because it changes from machine to machine how do we locate it in a generalized way?

    -- Steven

    Wednesday, February 08, 2017 5:28 PM


All replies