Skip to content

Commit cd20348

Browse files
committed
Add PS7 Help
1 parent b22510a commit cd20348

3 files changed

+16
-5
lines changed

PowerShellEditorServices.build.ps1

+6-5
Original file line numberDiff line numberDiff line change
@@ -264,18 +264,19 @@ Task SetupHelpForTests {
264264
throw 'Failed to install PowerShell 5.1 Help.'
265265
}
266266
}
267-
if ($PSEdition -eq 'Core') {
268-
Write-Host -Fore Magenta 'Checking Runner Pwsh help'
269-
& ([ScriptBlock]::Create($resolvedScript))
270-
}
271267

272268
if ($PwshDaily -and (Get-Command $PwshDaily -ea 0)) {
273269
Write-Host -Fore Magenta "Checking PWSH Daily help at $PwshDaily"
274-
& $PwshDaily -NoProfile -NonInteractive -Command $resolvedScript
270+
& $PwshDaily -NoProfile -NonInteractive -Command $resolvedScript -args $helpPath
275271
if ($LASTEXITCODE -ne 0) {
276272
throw 'Failed to install PowerShell Daily Help.'
277273
}
278274
}
275+
276+
if ($PSEdition -eq 'Core') {
277+
Write-Host -Fore Magenta 'Checking Runner Pwsh help'
278+
& ([ScriptBlock]::Create($resolvedScript)) $helpPath
279+
}
279280
}
280281

281282
Task TestPS74 Build, SetupHelpForTests, {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<HelpInfo xmlns="http://schemas.microsoft.com/powershell/help/2010/05">
3+
<HelpContentURI>https://aka.ms/powershell75-help</HelpContentURI>
4+
<SupportedUICultures>
5+
<UICulture>
6+
<UICultureName>en-US</UICultureName>
7+
<UICultureVersion>7.5.0.0</UICultureVersion>
8+
</UICulture>
9+
</SupportedUICultures>
10+
</HelpInfo>

0 commit comments

Comments
 (0)