- Remove nuproj projects and replace with plain nuspec files.
- Update AppVeyor yaml accordingly.
- Replace gitversion with Nerdbank.GitVersioning.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
This commit is contained in:
José Simões 2018-11-07 12:31:53 +00:00
Родитель a49f8882ba
Коммит dc1f7e3e1c
12 изменённых файлов: 133 добавлений и 124 удалений

Просмотреть файл

@ -1,38 +0,0 @@
next-version: 1.0.0
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
assembly-informational-format: '{LegacySemVerPadded}'
build-metadata-padding: 3
legacy-semver-padding: 3
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
branches:
master:
mode: ContinuousDelivery
tag:
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
develop:
regex: dev(elop)?(ment)?$
mode: ContinuousDeployment
tag: preview
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
tracks-release-branches: true
is-release-branch: false
release:
tag: rc
pull-request:
regex: (pull|pull\-requests|pr)[/-]
tag: alpha
mode: ContinuousDelivery
increment: Inherit
prevent-increment-of-merged-branch-version: false
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
ignore:
sha: []

Просмотреть файл

@ -16,6 +16,7 @@ skip_commits:
- 'LICENSE'
- dir/*
- '.gitignore'
- 'azure-pipelines.yml'
build:
verbosity: minimal
@ -44,13 +45,12 @@ init:
- ps: "if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq \"\")\n{\n \n if($env:APPVEYOR_REPO_COMMIT_AUTHOR -eq \"nfbot\" -and $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -like \"*[version update]*\")\n {\n # commit was from nfbot AND it's taged as a [version update]\n # OK to skip AppVeyor build \n \"Version update only. Skipping build.\" | Write-Host -BackgroundColor White -ForegroundColor Blue\n Exit-AppveyorBuild\n }\n}"
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- gem install bundler --quiet --no-ri --no-rdoc
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
# this needs to be replace with the official version and nuget package as soon as it's released
- dotnet tool install -g --version 4.0.0-pullrequest1422-1625 --add-source https://ci.appveyor.com/nuget/gitversion-8nigugxjftrw GitVersion.CommandLine.DotNetCore.Tool
- ps: .\install-vsix-appveyor.ps1
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- gem install bundler --quiet --no-ri --no-rdoc
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
- dotnet tool install --tool-path . nbgv
- ps: .\install-vsix-appveyor.ps1
before_build:
- ps: >-
@ -59,25 +59,32 @@ before_build:
nuget restore source\nanoFramework.Windows.Devices.SerialCommunication.sln
dotnet-gitversion /l console /output buildserver /updateAssemblyInfo "source\Windows.Devices.SerialCommunication\Properties\AssemblyInfo.cs"
.\nbgv cloud -p source -a -c
build_script:
- ps: >-
msbuild source\nanoFramework.Windows.Devices.SerialCommunication.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: msbuild source\nanoFramework.Windows.Devices.SerialCommunication.sln /p:PublicRelease=true /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
before_deploy:
- ps: >-
.\nbgv cloud --version=$env:NBGV_SemVer1
$env:MyNuGetVersion = $env:NBGV_NuGetPackageVersion -replace "\-g$env:NBGV_GitCommitIdShort", " "
.\generate-change-log.ps1
- nuget pack source\nanoframework.Windows.Devices.SerialCommunication.nuspec -Version %MyNuGetVersion%
- nuget pack source\nanoframework.Windows.Devices.SerialCommunication.DELIVERABLES.nuspec -Version %MyNuGetVersion%
- ps: >-
.\commit-assemblyinfo-changes.ps1
.\generate-change-log.ps1
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\source\Nuget.Windows.Devices.SerialCommunication\bin\Release\nanoFramework.Windows.Devices.SerialCommunication.$env:GitVersion_NuGetVersionV2.nupkg
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\nanoFramework.Windows.Devices.SerialCommunication.$env:MyNuGetVersion.nupkg
after_deploy:
# for this environment variable to work here it has to be set in AppVeyor UI
- nuget push source\Nuget.Windows.Devices.SerialCommunication\bin\Release\nanoFramework.Windows.Devices.SerialCommunication.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
- nuget push source\Nuget.Windows.Devices.SerialCommunication.DELIVERABLES\bin\Release\nanoFramework.Windows.Devices.SerialCommunication.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
- nuget push nanoFramework.Windows.Devices.SerialCommunication.%MyNuGetVersion%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
- nuget push nanoFramework.Windows.Devices.SerialCommunication.DELIVERABLES.%MyNuGetVersion%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
# requires APPVEYOR_DISCORD_WEBHOOK_URL enviroment variable set with Discord webhook URL
on_failure:
@ -96,7 +103,7 @@ for:
branches:
only:
- master
- /v.*/
- /v\d.*/
deploy:
- provider: NuGet
@ -105,9 +112,9 @@ for:
on:
appveyor_repo_tag: true
- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(GitVersion_NuGetVersionV2)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.SerialCommunication/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
tag: v$(MyNuGetVersion)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(MyNuGetVersion)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.SerialCommunication/$(MyNuGetVersion)) v$(MyNuGetVersion)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact:
@ -120,13 +127,13 @@ for:
-
branches:
only:
- /dev.*/
- /dev(elop)?$/
deploy:
- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(GitVersion_NuGetVersionV2)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from nanoFramework MyGet development feed\n\nThe following NuGet packages are available for download from this release\n\npackage: [.NET](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Windows.Devices.SerialCommunication/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
tag: v$(MyNuGetVersion)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(MyNuGetVersion)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from nanoFramework MyGet development feed\n\nThe following NuGet packages are available for download from this release\n\npackage: [.NET](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Windows.Devices.SerialCommunication/$(MyNuGetVersion)) v$(MyNuGetVersion)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact:
@ -148,9 +155,9 @@ for:
on:
appveyor_repo_tag: true
- provider: GitHub
tag: v$(GitVersion_NuGetVersionV2)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(GitVersion_NuGetVersionV2)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.SerialCommunication/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)'
tag: v$(MyNuGetVersion)
release: nanoFramework Windows.Devices.SerialCommunication Library v$(MyNuGetVersion)
description: 'Check the [changelog](https://github.com/nanoframework/lib-Windows.Devices.SerialCommunication/blob/$(appveyor_repo_branch)/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.SerialCommunication/$(MyNuGetVersion)) v$(MyNuGetVersion)'
auth_token:
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S
artifact:

Просмотреть файл

@ -1,22 +1,6 @@
# Copyright (c) 2018 The nanoFramework project contributors
# See LICENSE file in the project root for full license information.
# skip updating assembly info changes if build is a pull-request or not a tag (can't commit when repo is in a tag)
if ($env:appveyor_pull_request_number -or $env:APPVEYOR_REPO_TAG -eq "true")
{
'Skip committing assembly info changes...' | Write-Host -ForegroundColor White
}
else
{
# updated assembly info files
git add "source\Windows.Devices.SerialCommunication\Properties\AssemblyInfo.cs"
git commit -m "Update assembly info file for v$env:GitVersion_NuGetVersionV2" -m"[version update]"
git push origin --porcelain -q > $null
'Updated assembly info...' | Write-Host -ForegroundColor White -NoNewline
'OK' | Write-Host -ForegroundColor Green
}
# update assembly info in nf-interpreter if this is tag
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
@ -27,13 +11,13 @@ if ($env:APPVEYOR_REPO_TAG -eq "true")
cd nf-interpreter > $null
# new branch name
$newBranch = "$env:APPVEYOR_REPO_BRANCH-nfbot/update-version/Windows.Devices.SerialCommunication/$env:GitVersion_NuGetVersionV2"
$newBranch = "$env:APPVEYOR_REPO_BRANCH-nfbot/update-version/Windows.Devices.SerialCommunication/$env:MyNuGetVersion"
# create branch to perform updates
git checkout -b "$newBranch" develop -q
# replace version in assembly declaration
$newVersion = $env:GitVersion_AssemblySemFileVer -replace "\." , ", "
$newVersion = $env:NBGV_AssemblyFileVersion -replace "\." , ", "
$newVersion = "{ $newVersion }"
$versionRegex = "\{\s*\d+\,\s*\d+\,\s*\d+\,\s*\d+\s*}"
@ -56,7 +40,7 @@ if ($env:APPVEYOR_REPO_TAG -eq "true")
}
else
{
$commitMessage = "Update Windows.Devices.SerialCommunication version to $env:GitVersion_NuGetVersionV2"
$commitMessage = "Update Windows.Devices.SerialCommunication version to $env:MyNuGetVersion"
# commit changes
git add -A 2>&1

Просмотреть файл

@ -14,7 +14,7 @@ else
if ($env:APPVEYOR_REPO_BRANCH -eq "master" -or $env:APPVEYOR_REPO_BRANCH -match "^release*")
{
# generate change log including future version
bundle exec github_changelog_generator --token $env:GitHubToken --future-release "v$env:GitVersion_MajorMinorPatch"
bundle exec github_changelog_generator --token $env:GitHubToken --future-release "v$env:NBGV_Version"
}
else
{
@ -23,8 +23,14 @@ else
bundle exec github_changelog_generator --token $env:GitHubToken
}
# updated changelog and the updated assembly info files
git add CHANGELOG.md
git commit -m "Update CHANGELOG for v$env:GitVersion_NuGetVersionV2"
git push origin --porcelain -q > $null
# updated changelog, if there are any differences
$logDif = git diff CHANGELOG.md
if($logDif -ne $null)
{
git add CHANGELOG.md
git commit -m "Update CHANGELOG for v$env:MyNuGetVersion"
# need to wrap the git command bellow so it doesn't throw an error because of redirecting the output to stderr
git push origin --porcelain | Write-Host
}
}

Просмотреть файл

@ -1,3 +0,0 @@
There is packaging tool for Visual Studio 2017 that must be installed before you should open the solution.
Please visit the [NuGetizer-3000 repository](https://github.com/NuGet/NuGet.Build.Packaging) and follow the instructions.

Просмотреть файл

@ -14,17 +14,3 @@ using System.Runtime.InteropServices;
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("1.0.1-preview002")]

Просмотреть файл

@ -95,6 +95,7 @@
</Reference>
</ItemGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
<Import Project="..\packages\Nerdbank.GitVersioning.2.2.13\build\Nerdbank.GitVersioning.targets" />
<ProjectExtensions>
<ProjectCapabilities>
<ProjectConfigurationsDeclaredAsItems />

Просмотреть файл

@ -3,6 +3,5 @@
<package id="nanoFramework.CoreLibrary" version="1.0.4" targetFramework="netnanoframework10" />
<package id="nanoFramework.Runtime.Events" version="1.0.0" targetFramework="netnanoframework10" />
<package id="nanoFramework.Windows.Storage.Streams" version="1.0.0" targetFramework="netnanoframework10" />
<package id="NuProj" version="0.20.4-beta" developmentDependency="true" />
<package id="NuProj.Common" version="0.20.4-beta" developmentDependency="true" />
<package id="Nerdbank.GitVersioning" version="2.2.13" developmentDependency="true" />
</packages>

Просмотреть файл

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nanoFramework.Windows.Devices.SerialCommunication.DELIVERABLES</id>
<version>$version$</version>
<title>nanoFramework.Windows.Devices.SerialCommunication.DELIVERABLES</title>
<authors>nanoFramework project contributors</authors>
<owners>nanoFramework project contributors</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes></releaseNotes>
<developmentDependency>false</developmentDependency>
<projectUrl>https://github.com/nanoframework</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
<copyright>Copyright (c) 2018 The nanoFramework project contributors</copyright>
<description>** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the Windows.Devices.SerialCommunication assembly for nanoFramework. These are for testing purposes and for updating the native code base of the library.</description>
<summary>Windows.Devices.SerialCommunication.DELIVERABLES is not meant for development.</summary>
<tags></tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="[1.0.5-preview024]" />
</dependencies>
</metadata>
<files>
<file src="Windows.Devices.SerialCommunication\bin\Release\Stubs\*.*" target="content\Stubs\" />
<file src="Windows.Devices.SerialCommunication\obj\Release\*.txt" target="content\txt\" />
<file src="Windows.Devices.SerialCommunication\obj\Release\*.dump" target="content\dump\" />
<file src="Windows.Devices.SerialCommunication\obj\Release\*.strings" target="content\dump\" />
<file src="Windows.Devices.SerialCommunication\obj\Release\*.resources" target="content\resources\" />
<file src="Windows.Devices.SerialCommunication\obj\Release\*.il" target="content\disasm\" />
</files>
</package>

Просмотреть файл

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nanoFramework.Windows.Devices.SerialCommunication</id>
<version>$version$</version>
<title>nanoFramework.Windows.Devices.SerialCommunication</title>
<authors>nanoFramework project contributors</authors>
<owners>nanoFramework project contributors</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes></releaseNotes>
<developmentDependency>false</developmentDependency>
<projectUrl>https://github.com/nanoframework</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
<copyright>Copyright (c) 2018 The nanoFramework project contributors</copyright>
<description>This package includes the Windows.Devices.SerialCommunication assembly for nanoFramework C# projects.</description>
<summary>Windows.Devices.SerialCommunication assembly for nanoFramework C# projects</summary>
<tags>nanoFramework C# csharp netmf netnf Windows.Devices.SerialCommunication</tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="[1.0.5-preview024]" />
</dependencies>
</metadata>
<files>
<file src="Windows.Devices.SerialCommunication\bin\Release\Windows.Devices.SerialCommunication.dll" target="lib\Windows.Devices.SerialCommunication.dll" />
<file src="Windows.Devices.SerialCommunication\bin\Release\Windows.Devices.SerialCommunication.pdb" target="lib\Windows.Devices.SerialCommunication.pdb" />
<file src="Windows.Devices.SerialCommunication\bin\Release\Windows.Devices.SerialCommunication.pdbx" target="lib\Windows.Devices.SerialCommunication.pdbx" />
<file src="Windows.Devices.SerialCommunication\bin\Release\Windows.Devices.SerialCommunication.pe" target="lib\Windows.Devices.SerialCommunication.pe" />
<file src="Windows.Devices.SerialCommunication\bin\Release\Windows.Devices.SerialCommunication.xml" target="lib\Windows.Devices.SerialCommunication.xml" />
</files>
</package>

Просмотреть файл

@ -5,16 +5,6 @@ VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "Windows.Devices.SerialCommunication", "Windows.Devices.SerialCommunication\Windows.Devices.SerialCommunication.nfproj", "{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.SerialCommunication", "Nuget.Windows.Devices.SerialCommunication\Nuget.Windows.Devices.SerialCommunication.nuproj", "{F7151EC8-F9F2-47F9-BA93-E84580E6E3EE}"
ProjectSection(ProjectDependencies) = postProject
{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310} = {47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}
EndProjectSection
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.SerialCommunication.DELIVERABLES", "Nuget.Windows.Devices.SerialCommunication.DELIVERABLES\Nuget.Windows.Devices.SerialCommunication.DELIVERABLES.nuproj", "{A9A49A89-69C3-4C61-B60F-73DF88664602}"
ProjectSection(ProjectDependencies) = postProject
{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310} = {47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -26,14 +16,6 @@ Global
{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47B02EF4-2BDA-4C0F-ADC4-076CD39B9310}.Release|Any CPU.Build.0 = Release|Any CPU
{F7151EC8-F9F2-47F9-BA93-E84580E6E3EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7151EC8-F9F2-47F9-BA93-E84580E6E3EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7151EC8-F9F2-47F9-BA93-E84580E6E3EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7151EC8-F9F2-47F9-BA93-E84580E6E3EE}.Release|Any CPU.Build.0 = Release|Any CPU
{A9A49A89-69C3-4C61-B60F-73DF88664602}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9A49A89-69C3-4C61-B60F-73DF88664602}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9A49A89-69C3-4C61-B60F-73DF88664602}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9A49A89-69C3-4C61-B60F-73DF88664602}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

26
source/version.json Normal file
Просмотреть файл

@ -0,0 +1,26 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0.2-preview.{height}",
"assemblyVersion": {
"precision": "revision"
},
"semVer1NumericIdentifierPadding": 3,
"nugetPackageVersion": {
"semVer": 1
},
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"setVersionVariables": true,
"setAllVariables": true,
"buildNumber": {
"enabled": true,
"includeCommitId": {
"when": "nonPublicReleaseOnly",
"where": "buildMetadata"
}
}
}
}