从PowerShell版本3开始,基于注释的帮助注释块定义非常明确:https : //technet.microsoft.com/zh-cn/library/hh847834.aspx 我想知道的是存在用于PowerShell脚本版本控制的标准像在C#中一样?我要发布模块时,我正在询问,而psd1文件具有:
# Version number of this module.
ModuleVersion = '1.0.0.0'
Run Code Online (Sandbox Code Playgroud)
在我自己的脚本中,我使用以下标准:
<#
.SYNOPSIS
<Synopsis goes here>.
.DESCRIPTION
<Description goes here>.
.EXAMPLE
Example.ps1
Runs with default parameters
.NOTES
Author : Glen Buktenica
Version : 1.0.0.0 20160725 Initial Build
#>
Run Code Online (Sandbox Code Playgroud)