-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathversion.json
More file actions
25 lines (25 loc) · 1.25 KB
/
version.json
File metadata and controls
25 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0-beta.{height}", // required (unless the "inherit" field is set to true and a parent version.json file sets this.)
"semVer1NumericIdentifierPadding": 4, // optional. Use when your -prerelease includes numeric identifiers and need semver1 support.
"gitCommitIdShortFixedLength": 10, // optional. Set the commit ID abbreviation length.
"gitCommitIdShortAutoMinimum": 0, // optional. Set to use the short commit ID abbreviation provided by the git repository.
"nugetPackageVersion": {
"semVer": 2 // optional. Set to either 1 or 2 to control how the NuGet package version string is generated. Default is 1.
},
"publicReleaseRefSpec": [
"^refs/heads/master$", // we release out of master
"^refs/tags/v\\d+\\.\\d+" // we also release tags starting with vN.N
],
"cloudBuild": {
"setVersionVariables": true,
"buildNumber": {
"enabled": false,
"includeCommitId": {
"when": "nonPublicReleaseOnly",
"where": "buildMetadata"
}
}
},
"inherit": false // optional. Set to true in secondary version.json files used to tweak settings for subsets of projects.
}