Skip to content

Commit e1bec22

Browse files
Merge pull request #1318 from microsoft/user/5an7y/WDK_vs_individual_component_naming
WDK VS component naming convention
2 parents 4f30b7f + 5c98155 commit e1bec22

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

Build-SampleSet.ps1

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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
109110
if ($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"
185186
if (($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) / 1GB)"
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) / 1GB)"
199200
Write-Output ""
200201
Write-Output "T: Combinations"
201202
Write-Output "B: Built"

0 commit comments

Comments
 (0)