Update-Help fails for Microsoft.PowerShell.PSResourceGet: HelpInfoUri fwlink redirects to the docs page

未关闭
#2,078 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
领域
documentation

调研方向

The failing value is HelpInfoUri in the module manifest (.psd1) for Microsoft.PowerShell.PSResourceGet, and the same fwlink appears as HelpContentURI in the published HelpInfo.xml. Start by reading the manifest and checking where the fwlink resolves, then reproduce with Update-Help. Done means Update-Help succeeds, which likely needs a maintainer to fix the fwlink or the help location because the link is controlled outside this repository.

由索引模型根据 Issue 内容生成。

描述

Prerequisites
  • Latest PSResourceGet: 1.2.0 (bundled with PowerShell 7.6.x) and 1.3.0-rc1 (PowerShell 7.7.0-rc.1)
Steps to reproduce
Update-Help -Module Microsoft.PowerShell.PSResourceGet -UICulture en-US -Force
Expected behaviour

The help is updated, as it was until recently.

Actual behaviour
Update-Help: Failed to update Help for the module(s) 'Microsoft.PowerShell.PSResourceGet' with UI culture(s) {en-US} :
The value of the HelpInfoUri key in the module manifest must resolve to a container or root URL on a website where
the help files are stored. The HelpInfoUri
'https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.psresourceget/?view=powershellget-3.x'
does not resolve to a container..
Details
  • The manifest's HelpInfoUri, https://go.microsoft.com/fwlink/?linkid=2238183, now redirects to
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.psresourceget/?view=powershellget-3.x,
    the documentation page, instead of the help container.
  • The help is still published at https://pshelpprod.z22.web.core.windows.net/powershellget-3.x/
    (Microsoft.PowerShell.PSResourceGet_e4e0bda1-0703-44a5-b70d-8fe704cd0643_HelpInfo.xml and the en-US cab,
    dated 2026-10-28), but that HelpInfo.xml has the same fwlink as its HelpContentURI, so correcting
    the manifest alone doesn't help.
  • (powershellget-3.x in these URLs is the documentation's name for PSResourceGet, which started
    out as PowerShellGet v3; PowerShellGet 2.2.5 isn't involved.)
  • Other bundled modules are fine: e.g. ThreadJob's fwlink redirects to
    https://pshelpprod.z22.web.core.windows.net/powershell-7.6/.

Pointing the fwlink back at the container (or the manifest and HelpInfo.xml at the container directly)
would fix it.

主要语言
C#
星标
581
派生
116
平均合并
1 天 21 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PowerShell/PSResourceGet 的其他 Issue

查看 PowerShell/PSResourceGet 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。