diff options
Diffstat (limited to 'Build-SampleSet.ps1')
| -rw-r--r-- | Build-SampleSet.ps1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1 index 8638d517..32e603bd 100644 --- a/Build-SampleSet.ps1 +++ b/Build-SampleSet.ps1 @@ -5,6 +5,7 @@ param( [string[]]$Platforms = @(if ([string]::IsNullOrEmpty($env:WDS_Platform)) { "x64" } else { $env:WDS_Platform }), $LogFilesDirectory = (Get-Location), [string]$ReportFileName = $(if ([string]::IsNullOrEmpty($env:WDS_ReportFileName)) { "_overview" } else { $env:WDS_ReportFileName }), + [string]$InfOptions = "", [int]$ThrottleLimit = 0 ) @@ -12,8 +13,8 @@ $root = Get-Location # launch developer powershell (if necessary to prevent multiple developer sessions) if (-not $env:VSCMD_VER) { - Import-Module (Resolve-Path "$env:ProgramFiles\Microsoft Visual Studio\2022\*\Common7\Tools\Microsoft.VisualStudio.DevShell.dll") - Enter-VsDevShell -VsInstallPath (Resolve-Path "$env:ProgramFiles\Microsoft Visual Studio\2022\*") + Import-Module (Resolve-Path "$env:ProgramFiles\Microsoft Visual Studio\*\*\Common7\Tools\Microsoft.VisualStudio.DevShell.dll") + Enter-VsDevShell -VsInstallPath (Resolve-Path "$env:ProgramFiles\Microsoft Visual Studio\*\*") Set-Location $root } @@ -135,6 +136,11 @@ if ($build_environment -match '^EWDK') { # $InfVerif_AdditionalOptions=($build_number -le 22621 ? "/sw1284 /sw1285 /sw1293 /sw2083 /sw2086" : "/samples") +# Override InfVerif_AdditionalOptions if InfOptions parameter was provided +if (-not [string]::IsNullOrEmpty($InfOptions)) { + $InfVerif_AdditionalOptions = $InfOptions +} + # # Determine exclusions. # |
