[Windows] Add WSL2 to Windows-2025 image (#11242)

This commit is contained in:
Alexey-Ayupov
2024-12-30 11:11:22 +01:00
committed by GitHub
parent 0a970d8e11
commit 5e69d9c205
6 changed files with 33 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ Import-Module (Join-Path $PSScriptRoot "SoftwareReport.VisualStudio.psm1") -Disa
$softwareReport = [SoftwareReport]::new($(Build-OSInfoSection))
$optionalFeatures = $softwareReport.Root.AddHeader("Windows features")
$optionalFeatures.AddToolVersion("Windows Subsystem for Linux (WSLv1):", "Enabled")
if (Test-IsWin25) {
$optionalFeatures.AddToolVersion("Windows Subsystem for Linux (Default, WSLv2):", $(Get-WSL2Version))
}
$installedSoftware = $softwareReport.Root.AddHeader("Installed Software")
# Language and Runtime