Nerdbank.GitVersioning
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示 Nerdbank.GitVersioning 的版本信息。
注意
Nerdbank.GitVersioning CLI 运行可能较慢,会导致提示符响应延迟。
示例配置
- json
- yaml
- toml
{
"type": "nbgv",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#3a579a",
"template": " {{ .Version }} "
}
type: nbgv
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#3a579a"
template: " {{ .Version }} "
type = "nbgv"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#3a579a"
template = " {{ .Version }} "
模板 (信息)
默认模板
{{ .Version }}
属性
| Name | Type | Description |
|---|---|---|
.Version | string | the current version |
.AssemblyVersion | string | the current assembly version |
.AssemblyInformationalVersion | string | the current assembly informational version |
.NuGetPackageVersion | string | the current nuget package version |
.ChocolateyPackageVersion | string | the current chocolatey package version |
.NpmPackageVersion | string | the current npm package version |
.SimpleVersion | string | the current simple version |