pull/15/head
Nikita Bykov 5 years ago
parent 0b63de0be2
commit 17960054c9

@ -3,8 +3,9 @@
### ###
function Get-VSWhere { function Get-VSWhere {
$vswhere = Join-Path $env:ProgramFiles(x86) 'Microsoft Visual Studio\Installer\vswhere.exe' $PF = ${env:ProgramFiles(x86)}
$vswhere = "$PF\Microsoft Visual Studio\Installer\vswhere.exe";
Write-Host "vswhere - $vswhere"
if (-not (Test-Path $vswhere )) { if (-not (Test-Path $vswhere )) {
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$vswhere = ".\vswhere.exe" $vswhere = ".\vswhere.exe"
@ -34,7 +35,7 @@ function Invoke-Environment
} }
function Get-VSInstallationPath { function Get-VSInstallationPath {
Write-Host "ProgramFiles(x86) - $env:ProgramFiles(x86)" Write-Host "ProgramFiles(x86) - ${env:ProgramFiles(x86)}"
$vswhere = Get-VSWhere $vswhere = Get-VSWhere
Write-Host "vswhere - $vswhere" Write-Host "vswhere - $vswhere"
$installationPath = & $vswhere -prerelease -legacy -latest -property installationPath $installationPath = & $vswhere -prerelease -legacy -latest -property installationPath

Loading…
Cancel
Save