Skip to content

Get-Help is not reading from release-specific 6.0.0.n help directory #2649

@juneb

Description

@juneb

Beginning in PowerShell 6.0.0.12, the version-specific (release-specific) $pshome\en-us ($env:ProgramFiles\PowerShell\6.0.0.12\en-US) has its own help files. But, Get-Help in 6.0.0.12 is reading its help files from $pshome in 5.1 (C:\Windows\System32\WindowsPowerShell\v1.0\en-us).

If we take the time to create release-specific help files, Get-Help should read them.

Repro:
The about topics have characteristic off-by-one errors, so you can tell which one Get-Help is reading.

In the image below, note that the 5.1 en-US About topics have this name error:

about_Aliases <--- extra line
TOPIC
about_aliases

The 6.0.0.12 en-US About topics have a different name error:

TOPIC
about_aliases

about_aliases    #<-- extra name line

SHORT DESCRIPTION

So, when you run Get-Help, you can tell that it's pulling the older file.
screenshot 2016-11-09 09 54 33

Here's the effect:
screenshot 2016-11-09 09 45 12

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions