![]() ![]() PowerShell API: This is the simplest API for finding VS installation instances and components, but of course requires PowerShell v3 and above. %dir% now contains the root installation path, if available.Ģ. If /i "%%i"="installationPath" set dir=%%j For example, the following batch script for vswhere will find the root path the latest installed version that also contains the C++ Desktop workload: for /f "usebackq tokens=1* delims=: " %%i in (`vswhere.exe -latest -requires `) do ( The tool supports emitting different formats so far including plain text, JSON, and XML. ![]() vswhere.exe: A stand-alone native executable that is redistributable and can be used to locate installed Visual Studio product instances for use in build and deployment scripts. There are multiple ways you can go about the finding the VS instances installed and determining the tools installed for each instance.ġ. How to find installed Visual Studio 2017 instances and C++ tools The following blog post will share a number of options available for locating Visual Studio 2017 instances and provides various samples that illustrates the process in action. For up-to-date documentation see Tools for detecting and managing Visual Studio instances.There have been a number of questions from customers about how to locate the tools in the world of this new installation model. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |