mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Rename $explicitlyRequestedVSPath to $withVSPath
This commit is contained in:
parent
615f7e112f
commit
7eb0095094
@ -1,7 +1,7 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
|
||||
[Parameter(Mandatory=$False)][string]$explicitlyRequestedVSPath = ""
|
||||
[Parameter(Mandatory=$False)][string]$withVSPath = ""
|
||||
)
|
||||
|
||||
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
@ -39,7 +39,7 @@ if (!(Test-Path $vcpkgSourcesPath))
|
||||
try
|
||||
{
|
||||
pushd $vcpkgSourcesPath
|
||||
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1 $explicitlyRequestedVSPath
|
||||
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1 $withVSPath
|
||||
$msbuildExe = $msbuildExeWithPlatformToolset[0]
|
||||
$platformToolset = $msbuildExeWithPlatformToolset[1]
|
||||
$windowsSDK = & $scriptsDir\getWindowsSDK.ps1
|
||||
|
@ -1,10 +1,10 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory=$False)]
|
||||
[string]$explicitlyRequestedVSPath = ""
|
||||
[string]$withVSPath = ""
|
||||
)
|
||||
|
||||
$explicitlyRequestedVSPath = $explicitlyRequestedVSPath -replace "\\$" # Remove potential trailing backslash
|
||||
$withVSPath = $withVSPath -replace "\\$" # Remove potential trailing backslash
|
||||
|
||||
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
$VisualStudioInstallationInstances = & $scriptsDir\findVisualStudioInstallationInstances.ps1
|
||||
@ -19,7 +19,7 @@ foreach ($instanceCandidateWithEOL in $VisualStudioInstallationInstances)
|
||||
$version = $split[2]
|
||||
$path = $split[3]
|
||||
|
||||
if ($explicitlyRequestedVSPath -ne "" -and $explicitlyRequestedVSPath -ne $path)
|
||||
if ($withVSPath -ne "" -and $withVSPath -ne $path)
|
||||
{
|
||||
Write-Verbose "Skipping: $instanceCandidate"
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user