Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   TF.exe not found when only VS 2022 installed (https://www.kinook.com/Forum/showthread.php?t=5805)

deramor 03-01-2023 12:27 PM

TF.exe not found when only VS 2022 installed
 
Similar to this thread: https://www.kinook.com/Forum/showthread.php?t=3708
Except I am using v10.8 VBP.

I get the error:
Unable to auto-locate Team Foundation command-line executable; specify the full executable path + filename on the Options tab

I can specify the path but there are many steps that need to change. Is there any way I can get VBP to locate TF.exe on its own when only Visual Studio 2022 is installed? I am using VS 2022 Enterprise LTSC if that matters.

kinook 03-01-2023 09:58 PM

1 Attachment(s)
To locate Team Foundation w/ VS 2022, Visual Build

1) Attempts to load the VS binary registry file by
a) Looking for \Microsoft\VisualStudio\17.0_*\privateregistry.bin
b) Opening the file (but this will fail if VS is running due to file in use)
c) Looking in the registry file for SOFTWARE\Microsoft\VisualStudio\17.0_\Config\InstallDir
and using if found

If that fails,
2) Look in common known install locations for
a) \Microsoft Visual Studio\17.0\Enterprise\Common7\IDE\devenv.com
b) \Microsoft Visual Studio\17.0\Professional\Common7\IDE\devenv.com
c) \Microsoft Visual Studio\17.0\Community\Common7\IDE\devenv.com

3) if found, uses the path combined with
a) CommonExtensions\Microsoft\TeamFoundation\Team Explorer\tf.exe
or
b) tf.exe
and uses if found

You could also use the Visual Build object model to update the Exe step property for all Team Foundation actions in your project to the correct path. See attached (right-click on the Script step and Rebuild Selected).


All times are GMT -5. The time now is 06:48 PM.


Copyright © 1999-2023 Kinook Software, Inc.