|
|
@ -3,9 +3,8 @@
|
|
|
|
###
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
|
|
function Get-VSWhere {
|
|
|
|
function Get-VSWhere {
|
|
|
|
$PF = ${env:ProgramFiles(x86)}
|
|
|
|
$vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe";
|
|
|
|
$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"
|
|
|
|