在PowerShell 5.0中,Get-Help不显示基于注释的脚本帮助。相反,只有文件名被打印出来。
对于此代码,不显示注释块的值:
# dare.ps1
<#
.SYNOPSIS
The answer
.DESCRIPTION
Answer to the Ultimate Question of Life, the Universe, and Everything.
#>
"The answer to the Ultimate Question of Life, the Universe and Everything is {0}" -f 42 命令
PS C:\> Get-Help .\dare.ps1输出
dare.ps1https://stackoverflow.com/questions/44645372
复制相似问题