-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Description
I'd love to be able to use both Visual Studio and Visual Studio Preview as external tool options.
Since the registry keys that Visual Studio creates seem... messy, I don't think the current approach will work reliably.
Microsoft made a small utility called vswhere, which is specifically designed to locate installed Visual Studio instances.
The exe is available via. nuget which we could use to include it in the output for windows builds.
If that sounds like a good approach, I'd be happy to make a PR.
Output Example:
> .\vswhere.exe -prerelease
Visual Studio Locator version 3.1.7+f39851e70f [query version 3.12.2140.44225]
Copyright (C) Microsoft Corporation. All rights reserved.
installationName: VisualStudioPreview/17.14.7-pre.1.0
installationPath: C:\Program Files\Microsoft Visual Studio\2022\Preview
productPath: C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe
isPrerelease: 1
installationName: VisualStudio/17.14.7
installationPath: C:\Program Files\Microsoft Visual Studio\2022\Professional
productPath: C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe
isPrerelease: 0
Metadata
Metadata
Assignees
Labels
No labels