Repository navigation
Added support for Visual Studio Community, Professional, Enterprise 2017 (v15.2^), 2019, 2022 - #14662
Nico-Connor-Personal wants to merge 6 commits into
Conversation
|
32 bit computers are about 3% or less of modern developers nowadays so it’s a minor issue on not being able to test 32 bit. |
|
Turns out, according to the VSWhere documentation:
This means we don't need to do a registry search to get the visual studio installer path. We can safely assume the installer will always be located at
I started working on a second implementation here: #14664 , let me know if you would I prefer to focus on the new PR instead of this one. The only downside about the new PR is that I have to make use of |
|
I think the second implementation will be preferred: #14664 |
In the .NET World we would offload that into an task then use If all else fails, one can make an .NET 6 wrapper program (would require the .NET 6 runtime to be installed) to execute the program in a much safer way (also System.Diagnostics.Process is a good friend there). Also a good thing about .NET is that it would also require the .NET SDK be installed so one can use |
Closes #12946
Description
Implementing Visual Studio support required an unconventional approach since Visual Studio doesn't use a unique registry key like most other IDEs.
Thankfully as of Visual Studio 2017 v15.2, Microsoft includes a CLI tool called vswhere with the visual studio installer to help locate the path to their IDE. The installer has a unique registry key that we can use to locate its install path which will then allow us to query VSWhere and find the install paths for various visual studio installs.
Screenshots
Workstation 1
Workstation 2
Release notes
Added IDE support for:
Notes:
I don't have access to a 32 bit computer and therefore couldn't test my change on a 32 bit computer. The registry location for the Visual Studio Installer might be different on a 32 bit computer.