[Windows] Improve Visual Studio installation scripts to support Preview versions (#3850)

* Support Preview versions of Visual Studio

* resolve comments

* Fix test

* fix tests
This commit is contained in:
Maxim Lobanov
2021-08-04 22:35:44 +03:00
committed by GitHub
parent b5a7a67456
commit 8481b2c846
13 changed files with 34 additions and 29 deletions

View File

@@ -5,7 +5,7 @@ Describe "Visual Studio" {
}
It "Devenv.exe" {
$vsInstallRoot = Get-VisualStudioPath
$vsInstallRoot = (Get-VisualStudioInstance).InstallationPath
$devenvexePath = "${vsInstallRoot}\Common7\IDE\devenv.exe"
$devenvexePath | Should -Exist
}