{
  "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
  "version": "1.2",
  "assemblyVersion": "1.0",
  "buildNumberOffset": 0,
  "publicReleaseRefSpec": [
    "^refs/heads/master$", // we release out of master
    "^refs/heads/v\\d+(?:.\\d+)?$" // we also release out of vNN branches
  ],
  "cloudBuild": {
    "buildNumber": {
      "enabled": true
    }
  }
}
{
  "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
  "version": "1.2",
  "assemblyVersion": "1.0",
  "buildNumberOffset": 0,
  "publicReleaseRefSpec": [
    "^refs/heads/master$", // we release out of master
    "^refs/heads/v\\d+(?:.\\d+)?$" // we also release out of vNN branches
  ],
  "cloudBuild": {
    "setVersionVariables": true,
    "buildNumber": {
      "enabled": true,
      "includeCommitId": {
        "when": "always",
        "where": "buildMetadata"
      }
    }
  }
}

Include commit hash in cloud builds
Include commit hash in cloud builds
