[Windows] Add installer projects to VS on Windows-2022 (#4715)

* [Windows] Add installer projects to VS on windows-2022

* [Windows] Improve the function Install-VsixExtension
This commit is contained in:
V-Zabayrachny
2021-12-14 11:31:48 +03:00
committed by GitHub
parent ea705c4d63
commit 573c5aa999
3 changed files with 12 additions and 3 deletions

View File

@@ -270,10 +270,17 @@ function Install-VsixExtension
$vsEdition = (Get-ToolsetContent).visualStudio.edition $vsEdition = (Get-ToolsetContent).visualStudio.edition
try try
{ {
$installPath = ${env:ProgramFiles(x86)}
if (Test-IsWin22)
{
$installPath = ${env:ProgramFiles}
}
#There are 2 types of packages at the moment - exe and vsix #There are 2 types of packages at the moment - exe and vsix
if ($Name -match "vsix") if ($Name -match "vsix")
{ {
$process = Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\$VSversion\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru $process = Start-Process -FilePath "${installPath}\Microsoft Visual Studio\${VSversion}\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
} }
else else
{ {

View File

@@ -241,7 +241,9 @@
"Component.MDD.Linux", "Component.MDD.Linux",
"wasm.tools" "wasm.tools"
], ],
"vsix": [] "vsix": [
"VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects"
]
}, },
"docker": { "docker": {
"images": [ "images": [