microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.71k stars 461 forks source link

Improve test code to find VS root automatically #4667

Open pratikone opened 1 year ago

pratikone commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently test code uses GetVsInstallRoot function to look at pre-defined locations to find Visual Studio installed location. This is not a generic solution.

Describe the solution you'd like

We need to use services like vswhere to find where VS is installed (and pick one if there are multiple copies).

The challenge in the solution is that we need to make changes for the CI pipeline to be aware of vswhere too. It would involve changing yaml files related to deployment.

Describe alternatives you've considered

Using vswhere is one way, there could be another way too.

Applies to the following platforms: