2021-06-04 10:27:39 -07:00
|
|
|
---
|
|
|
|
id: nbgv
|
|
|
|
title: Nerdbank.GitVersioning
|
|
|
|
sidebar_label: Nbgv
|
|
|
|
---
|
|
|
|
|
|
|
|
## What
|
|
|
|
|
|
|
|
Display the [Nerdbank.GitVersioning][nbgv] version.
|
|
|
|
|
|
|
|
:::warning
|
|
|
|
The Nerdbank.GitVersioning CLI can be a bit slow causing the prompt to feel slow.
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Sample Configuration
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "nbgv",
|
|
|
|
"style": "powerline",
|
2021-11-08 09:44:06 -08:00
|
|
|
"powerline_symbol": "\uE0B0",
|
2021-06-04 10:27:39 -07:00
|
|
|
"foreground": "#ffffff",
|
|
|
|
"background": "#3a579a",
|
2022-03-27 01:12:47 -07:00
|
|
|
"template": " \uF1D2 {{ .Version }} "
|
2021-06-04 10:27:39 -07:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-02-01 03:10:46 -08:00
|
|
|
## Template ([info][templates])
|
|
|
|
|
|
|
|
:::note default template
|
|
|
|
|
|
|
|
``` template
|
|
|
|
{{ .Version }}
|
|
|
|
```
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
### Properties
|
2021-06-04 10:27:39 -07:00
|
|
|
|
|
|
|
- `.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
|
|
|
|
|
|
|
|
[nbgv]: https://github.com/dotnet/Nerdbank.GitVersioning
|
2022-04-20 09:43:59 -07:00
|
|
|
[templates]: /docs/configuration/templates
|