mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:26:02 +08:00
[findMSBuild.ps1] Set-StrictMode to Latest
This commit is contained in:
parent
bbe0aa9230
commit
1fb3785bee
@ -4,9 +4,11 @@ param(
|
||||
[string]$withVSPath = ""
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
|
||||
|
||||
$withVSPath = $withVSPath -replace "\\$" # Remove potential trailing backslash
|
||||
|
||||
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
|
||||
$VisualStudioInstallationInstances = & $scriptsDir\findVisualStudioInstallationInstances.ps1
|
||||
if ($VisualStudioInstallationInstances -eq $null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user