@@ -103,19 +103,20 @@ else {
103103 Write-Error " Could not determine build environment."
104104 exit 1
105105}
106- #
107106
108- # Be lenient with EWDK builds that do not include the package information
107+ # Determine WDK Visual Studio Component version
108+ #
109+ # Be lenient with EWDK builds that do not include the component information
109110if ($build_environment -match ' ^EWDK' ) {
110- $wdk_extension_ver = " (package is not included for EWDK builds)"
111+ $wdk_vs_component_ver = " (WDK Visual Studio Component Version is not included for EWDK builds)"
111112} else {
112113 # Get the WDK extension version from installed packages
113- $wdk_extension_ver = Get-ChildItem " ${env: ProgramData} \Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" - ErrorAction SilentlyContinue
114- if (-not $wdk_extension_ver ) {
115- Write-Error " No version of the WDK Visual Studio Extension could be found. The WDK Extension is not installed."
114+ $wdk_vs_component_ver = Get-ChildItem " ${env: ProgramData} \Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" - ErrorAction SilentlyContinue
115+ if (-not $wdk_vs_component_ver ) {
116+ Write-Error " WDK Visual Studio Component version not found. Please ensure the WDK Component is installed."
116117 exit 1
117118 }
118- $wdk_extension_ver = [regex ]::Match($wdk_extension_ver .Name , ' (\d+\.){3}\d+' ).Value
119+ $wdk_vs_component_ver = [regex ]::Match($wdk_vs_component_ver .Name , ' (\d+\.){3}\d+' ).Value
119120}
120121
121122#
@@ -180,22 +181,22 @@ $jresult = @{
180181
181182$SolutionsTotal = $sampleSet.Count * $Configurations.Count * $Platforms.Count
182183
183- Write-Output " WDK Build Environment: $build_environment "
184- Write-Output " WDK Build Number: $build_number "
184+ Write-Output " WDK Build Environment: $build_environment "
185+ Write-Output " WDK Build Number: $build_number "
185186if (($build_environment -eq " GitHub" ) -or ($build_environment -eq " NuGet" )) {
186- Write-Output " WDK Nuget Version: $nuget_package_version "
187+ Write-Output " WDK Nuget Version: $nuget_package_version "
187188}
188- Write-Output " WDK Extension Version: $wdk_extension_ver "
189- Write-Output " Samples: $ ( $sampleSet.Count ) "
190- Write-Output " Configurations: $ ( $Configurations.Count ) ($Configurations )"
191- Write-Output " Platforms: $ ( $Platforms.Count ) ($Platforms )"
192- Write-Output " InfVerif_AdditionalOptions: $InfVerif_AdditionalOptions "
193- Write-Output " Combinations: $SolutionsTotal "
194- Write-Output " LogicalProcessors: $LogicalProcessors "
195- Write-Output " ThrottleFactor: $ThrottleFactor "
196- Write-Output " ThrottleLimit: $ThrottleLimit "
197- Write-Output " WDS_WipeOutputs: $env: WDS_WipeOutputs "
198- Write-Output " Disk Remaining (GB): $ ( ((Get-Volume ((Get-Item " ." ).PSDrive.Name)).SizeRemaining) / 1 GB ) "
189+ Write-Output " WDK Visual Studio Component Version: $wdk_vs_component_ver "
190+ Write-Output " Samples: $ ( $sampleSet.Count ) "
191+ Write-Output " Configurations: $ ( $Configurations.Count ) ($Configurations )"
192+ Write-Output " Platforms: $ ( $Platforms.Count ) ($Platforms )"
193+ Write-Output " InfVerif_AdditionalOptions: $InfVerif_AdditionalOptions "
194+ Write-Output " Combinations: $SolutionsTotal "
195+ Write-Output " LogicalProcessors: $LogicalProcessors "
196+ Write-Output " ThrottleFactor: $ThrottleFactor "
197+ Write-Output " ThrottleLimit: $ThrottleLimit "
198+ Write-Output " WDS_WipeOutputs: $env: WDS_WipeOutputs "
199+ Write-Output " Disk Remaining (GB): $ ( ((Get-Volume ((Get-Item " ." ).PSDrive.Name)).SizeRemaining) / 1 GB ) "
199200Write-Output " "
200201Write-Output " T: Combinations"
201202Write-Output " B: Built"
0 commit comments