diff options
| author | 5an7y-Microsoft <[email protected]> | 2026-03-19 10:01:54 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-19 10:01:54 -0700 |
| commit | 21d568661684c410e8b2d290f5ee33787cd73de5 (patch) | |
| tree | d7a9d7ca84e87fef68f616aba1efee3a48b49b82 /Build-SampleSet.ps1 | |
| parent | 77d8f2d6ca1283718626965b53c69477bffb5fa8 (diff) | |
| parent | 925b2587f5cd6b19fa37bd766c1b568f2e277309 (diff) | |
Merge pull request #1358 from microsoft/main
FI main to develop
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. # |
