Skip to content

[Feature] add visual studio preview to external tools #1519

@FreyLuis

Description

@FreyLuis

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions