This commit is contained in:
Laurent Ellerbach 2021-09-28 17:45:36 +02:00 коммит произвёл GitHub
Родитель cf007dc789
Коммит f2301cf384
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 386 добавлений и 44 удалений

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

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

@ -2,11 +2,13 @@ trigger:
branches:
include: [main, develop, "release-*" ]
paths:
exclude: ["*.md", .gitignore]
exclude: [README.md, LICENSE.md, CHANGELOG.md, version.json, "*.md", .gitignore]
tags:
include: ["v*"]
# PR always trigger build
pr:
autoCancel: true
# add nf-tools repo to resources (for Azure Pipelines templates)
resources:
@ -21,19 +23,359 @@ pool:
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
solution: '**/*.sln'
solution: 'nanoFrameworkDeployer.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
nugetPackageName: 'nanoFrameworkDeployer'
repoName: 'nanoFrameworkDeployer'
steps:
# step from template @ nf-tools repo
# all build, update and publish steps
- template: azure-pipelines-templates/class-lib-build.yml@templates
parameters:
sonarCloudProject: 'nanoframework_nanoFrameworkDeployer'
- checkout: self
- script: |
git config --global user.email 'nanoframework@outlook.com'
git config --global user.name 'nfbot'
displayName: Setup git identity
# get commit message
- powershell: |
# default to false
$update = $false
if($env:System_PullRequest_PullRequestId -ne $null)
{
# PR build, nothing interesting in commit message
Write-Host "Build from PR"
}
else
{
# build NOT from PR
Write-Host "Build NOT from PR, commit ID: $env:Build_SourceVersion"
# get PR associate with commit
$prUrl = "https://api.github.com/repos/$env:Build_Repository_Name/commits/$env:Build_SourceVersion/pulls"
$commit = Invoke-RestMethod -Uri $prUrl -ContentType "application/json" -Headers @{"Accept"="application/vnd.github.groot-preview+json"} -Method GET
if($commit -ne $null)
{
# there is a PR, check labels
$updateDependents = $commit.labels | where {$_.Name -eq 'CI: Update Dependents'}
if($updateDependents -ne $null)
{
$update = $true
}
}
}
# set variable to foward to jobs
echo "##vso[task.setvariable variable=RUN_UPDATE_DEPENDENTS]$update"
displayName: Check PR labels
- task: DotNetCoreCLI@2
condition: or( eq( variables['StartReleaseCandidate'], true ), ne(variables['system.pullrequest.isfork'], true) )
displayName: Install NBGV tool
inputs:
command: custom
custom: tool
arguments: install -g nbgv
# only required when updating dependents
- script: nbgv cloud
condition: eq(variables['UPDATE_DEPENDENTS'], 'true')
displayName: Set Could Version
- powershell: |
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)"))))"
cd "$env:Agent_TempDirectory" > $null
git init "$env:Agent_TempDirectory\repo"
cd repo > $null
git remote add origin "$env:Build_Repository_Uri"
git config --global gc.auto 0
git config --global user.name nfbot
git config --global user.email nanoframework@outlook.com
git config --global core.autocrlf true
git -c http.extraheader="AUTHORIZATION: $auth" fetch --progress origin
git checkout develop
nbgv prepare-release
# get commit message for the merge
$commitMessage = git log -1 --pretty=%B
# amend commit message to skip build
git commit --amend -m "$commitMessage" -m "***NO_CI***" > $null
# push all changes to github
git -c http.extraheader="AUTHORIZATION: $auth" push --all origin
condition: eq( variables['StartReleaseCandidate'], true )
displayName: NBGV prepare release
- task: SonarCloudPrepare@1
condition: and( ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true'))
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: 'sonarcloud-nanoFrameworkDeployer'
organization: 'nanoframework'
scannerMode: 'MSBuild'
projectKey: 'nanoframework_nanoFrameworkDeployer'
- template: azure-pipelines-templates/install-nuget.yml@templates
- task: NuGetCommand@2
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: NuGet restore
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
condition: and( ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true'))
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
msbuildArgs: '/p:PublicRelease=true'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Install SignTool tool
condition: and( succeeded(), eq( variables['StartReleaseCandidate'], false ), eq(variables['System.PullRequest.PullRequestId'], '') )
inputs:
command: custom
custom: tool
arguments: install --tool-path . SignClient
- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Build.Repository.LocalPath)\build\bin\Release" `
--input "**/nanoFrameworkDeployer.exe" `
--config "$(Build.Repository.LocalPath)\config\SignClient.json" `
--filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
--user "$(SignClientUser)" `
--secret '$(SignClientSecret)' `
--name "nanoFrameworkDeployer" `
--description "nanoFrameworkDeployer" `
--descriptionUrl "https://github.com/$env:Build_Repository_Name"
displayName: Sign nanoFrameworkDeployer.exe
continueOnError: true
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
- task: PowerShell@2
condition: and( ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true'))
displayName: Get NuGet build number
inputs:
targetType: 'inline'
script: |
$MyNuGetVersion = $env:NBGV_NuGetPackageVersion -replace "\-g$env:NBGV_GitCommitIdShort", ""
# replace preview with alpha if this is a PR build
if($env:System_PullRequest_PullRequestId -ne $null)
{
$MyNuGetVersion = $MyNuGetVersion -replace "preview", "alpha"
}
if ($env:System_PullRequest_SourceBranch -like 'release*')
{
$MyNuGetVersion = $MyNuGetVersion + "-rc." + $env:NBGV_VersionHeight
}
Write-Host "NuGet build number is $MyNuGetVersion"
Write-Host "$("##vso[task.setvariable variable=MY_NUGET_VERSION]")$MyNuGetVersion"
# update cloud build number (only possible if this is not a PR from a fork)
- task: PowerShell@2
condition: and( succeeded(), ne(variables['system.pullrequest.isfork'], true), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Update cloud build number
inputs:
targetType: 'inline'
script: |
Write-Host "NuGet version is $("##vso[build.updatebuildnumber]")$env:MY_NUGET_VERSION"
Write-Host "Build version is $env:NBGV_AssemblyVersion"
- task: NuGetCommand@2
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Pack .NET NuGet package
inputs:
command: 'custom'
arguments: 'pack nanoFrameworkDeployer\nanoFrameworkDeployer.nuspec -Version $(MY_NUGET_VERSION) -properties commit="$(Build.SourceVersion)"'
# arguments: 'pack nanoFrameworkDeployer\nanoFrameworkDeployer.nuspec -Symbols -SymbolPackageFormat snupkg -Version $(MY_NUGET_VERSION) -properties commit="$(Build.SourceVersion)"'
# we don't have tests (yet)
# - task: VSTest@2
# inputs:
# platform: '$(buildPlatform)'
# configuration: '$(buildConfiguration)'
- task: SonarCloudAnalyze@1
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: 'Run Code Analysis'
- task: SonarCloudPublish@1
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
inputs:
pollingTimeoutSec: '300'
- task: UseRubyVersion@0
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Setup Ruby
inputs:
versionSpec: '= 2.7'
addToPath: true
# generate change log
- powershell: |
gem install github_changelog_generator --quiet --no-document
# need to call it passing both cache options with full path otherwise it won't work
github_changelog_generator --token $(GitHubToken) --cache-log $env:AGENT_TEMPDIRECTORY\github-changelog-logger.log --cache-file $env:AGENT_TEMPDIRECTORY\github-changelog-http-cache
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), not( startsWith(variables['Build.SourceBranchName'], 'main') ), not( contains(variables['Build.SourceBranchName'], 'update-dependencies') ), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Generate change log
# generate change log including future version
- powershell: |
gem install github_changelog_generator --quiet --no-document
# need to call it passing both cache options with full path otherwise it won't work
github_changelog_generator --token $(GitHubToken) --cache-log $env:AGENT_TEMPDIRECTORY\github-changelog-logger.log --cache-file $env:AGENT_TEMPDIRECTORY\github-changelog-http-cache --future-release v$env:MY_NUGET_VERSION
condition: and( succeeded(), and ( ne(variables['Build.Reason'], 'PullRequest'), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), startsWith(variables['Build.SourceBranchName'], 'main'), not( contains(variables['Build.SourceBranchName'], 'update-dependencies') ) ), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Generate change log
# copy change log to artifacts directory
- task: CopyFiles@2
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Copy Changelog
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: 'CHANGELOG.md'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
# push new changelog to GitHub repo
- task: PowerShell@2
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), not( contains(variables['Build.SourceBranchName'], 'update-dependencies') ), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Push changelog to GitHub
inputs:
targetType: 'inline'
script: |
git add CHANGELOG.md
git commit -m "Update CHANGELOG for v$(NBGV_Version)" -m"***NO_CI***"
git config user.email 'nanoframework@outlook.com'
git config user.name 'nfbot'
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)"))))"
git -c http.extraheader="AUTHORIZATION: $auth" push origin "HEAD:$(Build.SourceBranchName)"
- task: CopyFiles@1
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Collecting deployable artifacts
inputs:
sourceFolder: $(Build.SourcesDirectory)
Contents: |
**\nanoFrameworkDeployer.$(MY_NUGET_VERSION).nupkg
**\nanoFrameworkDeployer.$(MY_NUGET_VERSION).snupkg
**\nanoFrameworkDeployer.exe
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Build.ArtifactStagingDirectory)" `
--input "**/*.nupkg" `
--config "$(Build.Repository.LocalPath)\config\SignClient.json" `
--filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
--user "$(SignClientUser)" `
--secret '$(SignClientSecret)' `
--name ".NET nanoFramework Deployer" `
--description ".NET nanoFramework Deployer" `
--descriptionUrl "https://github.com/$env:Build_Repository_Name"
displayName: Sign packages
continueOnError: true
condition: and( succeeded(), eq( variables['StartReleaseCandidate'], false ), eq(variables['System.PullRequest.PullRequestId'], '') )
# publish artifacts (only possible if this is not a PR originated on a fork)
- task: PublishBuildArtifacts@1
condition: and( succeeded(), ne(variables['system.pullrequest.isfork'], true), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Publish deployables artifacts
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: deployables
ArtifactType: Container
# push NuGet packages to Azure Artifacts feed (always happens except on PR builds)
- task: NuGetCommand@2
condition: and( succeeded(), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Push NuGet packages to Azure Artifacts
inputs:
command: push
nuGetFeedType: external
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishFeedCredentials: 'AzureArtifacts-nanoFrameworkDeployer'
allowPackageConflicts: true
# push NuGet class lib package to NuGet (always happens except on PR builds)
- task: NuGetCommand@2
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
continueOnError: true
displayName: Push NuGet packages to NuGet
inputs:
command: push
nuGetFeedType: external
allowPackageConflicts: true
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishFeedCredentials: 'NuGet-nanoFrameworkDeployer'
# update dependencies
- task: PowerShell@2
condition: and(or(eq(variables['UPDATE_DEPENDENTS'], 'true'), eq(variables['RUN_UPDATE_DEPENDENTS'], 'true') ), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
displayName: Update dependent tools
inputs:
targetType: filePath
filePath: azure-pipelines/update-dependencies.ps1
env:
MY_GITHUB_TOKEN: $(GitHubToken)
# create or update GitHub release ON tags from release or main branches
- task: GithubRelease@1
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Create/Update GitHub PREVIEW release
inputs:
gitHubConnection: 'github.com_nano-$(System.TeamProject)'
tagSource: userSpecifiedTag
tag: v$(MY_NUGET_VERSION)
title: 'nanoFramework Deployer Library v$(MY_NUGET_VERSION)'
releaseNotesSource: inline
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [.NET](https://www.nuget.org/packages/nanoFrameworkDeployer.Net/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION) v$(MY_NUGET_VERSION)'
assets: |
'$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
'$(Build.ArtifactStagingDirectory)/nanoFrameworkDeployer.exe'
assetUploadMode: replace
isPreRelease: true
addChangeLog: false
# create or update GitHub release ON tags from release or main branches
- task: GithubRelease@1
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), not(contains(variables['Build.SourceBranch'], 'preview') ), ne( variables['StartReleaseCandidate'], true ), ne(variables['UPDATE_DEPENDENTS'], 'true') )
displayName: Create/Update GitHub stable release
inputs:
gitHubConnection: 'github.com_nano-$(System.TeamProject)'
tagSource: userSpecifiedTag
tag: v$(MY_NUGET_VERSION)
title: 'nanoFramework Deployer Library v$(MY_NUGET_VERSION)'
releaseNotesSource: inline
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [.NET](https://www.nuget.org/packages/nanoFrameworkDeployer.Net/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION) v$(MY_NUGET_VERSION)'
assets: |
'$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
'$(Build.ArtifactStagingDirectory)/nanoFrameworkDeployer.exe'
assetUploadMode: replace
isPreRelease: true
addChangeLog: false
# step from template @ nf-tools repo
# report error

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

@ -13,6 +13,9 @@ using System.Linq;
namespace nanoFrameworkFlasher
{
/// <summary>
/// This is the main program
/// </summary>
internal class Program
{
private static CommandlineOptions _options;
@ -21,6 +24,11 @@ namespace nanoFrameworkFlasher
private static NanoDeviceBase _device;
private static PortBase _serialDebugClient;
/// <summary>
/// Main entry point
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
internal static int Main(string[] args)
{
try

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

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("nanoFrameworkDeployer")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -22,15 +22,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6ae83bf1-c167-45a6-a723-99fcadf2564e")]
// 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.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

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

@ -105,5 +105,7 @@
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.4.2.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.4.2.1\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\PropertyChanged.Fody.2.6.1\build\PropertyChanged.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\PropertyChanged.Fody.2.6.1\build\PropertyChanged.Fody.props'))" />
<Error Condition="!Exists('..\packages\Nerdbank.GitVersioning.3.4.240\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Nerdbank.GitVersioning.3.4.240\build\Nerdbank.GitVersioning.targets'))" />
</Target>
<Import Project="..\packages\Nerdbank.GitVersioning.3.4.240\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\packages\Nerdbank.GitVersioning.3.4.240\build\Nerdbank.GitVersioning.targets')" />
</Project>

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

@ -3,21 +3,21 @@
<metadata>
<id>nanoFrameworkDeployer</id>
<version>$version$</version>
<title>nanoFrameworkDeployerc</title>
<title>nanoFrameworkDeployer</title>
<authors>nanoFramework project contributors</authors>
<owners>nanoFramework project contributors</owners>
<owners>nanoFramework project contributors,dotnetfoundation</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<releaseNotes>
</releaseNotes>
<developmentDependency>false</developmentDependency>
<projectUrl>https://github.com/nanoframework/nanoFrameworkDeployerc</projectUrl>
<projectUrl>https://github.com/nanoframework/nanoFrameworkDeployer</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
<icon>images\nf-logo.png</icon>
<repository type="git" url="https://github.com/nanoframework/nanoFrameworkDeployer" commit="$commit$" />
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
<description>This package includes the nanoFrameworkDeployer assembly for nanoFramework C# projects.
This package requires a target with nanoFrameworkDeployer v$nativeVersion$ (checksum $checksum$).</description>
<summary>nanoFrameworkDeployer assembly for .NET nanoFramework C# projects</summary>
<description>This package includes the .NET nanoFrameworkDeployer library that allows developing applications that deploy .NET nanoFramework assemblies.</description>
<summary>.NET nanoFrameworkDeployer library</summary>
<tags>nanoFramework C# csharp netmf netnf nanoFrameworkDeployer</tags>
<dependencies>
<dependency id="CommandLineParser" version="2.8.0" />
@ -32,11 +32,11 @@ This package requires a target with nanoFrameworkDeployer v$nativeVersion$ (chec
</dependencies>
</metadata>
<files>
<file src="bin\Release\nanoFrameworkDeployer.dll" target="lib\net472\nanoFrameworkDeployer.dll" />
<file src="bin\Release\nanoFrameworkDeployer.pdb" target="lib\net472\nanoFrameworkDeployer.pdb" />
<file src="bin\Release\nanoFrameworkDeployer.exe" target="content\nanoFrameworkDeployer.exe" />
<file src="bin\Release\nanoFrameworkDeployer.pdb" target="content\nanoFrameworkDeployer.pdb" />
<!-- readme -->
<file src="..\assets\readme.txt" target="readme.txt" />
<file src="..\assets\nf-logo.png" target="images" />
<file src="..\LICENSE.md" target="" />
<file src="..\assets\nf-logo.png" target="images" />
<file src="..\LICENSE.md" target="" />
</files>
</package>
</package>

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

@ -3,6 +3,7 @@
<package id="CommandLineParser" version="2.8.0" targetFramework="net472" />
<package id="Fody" version="4.2.1" targetFramework="net472" developmentDependency="true" />
<package id="nanoFramework.Tools.Debugger.Net" version="2.0.0-preview.38" targetFramework="net472" />
<package id="Nerdbank.GitVersioning" version="3.4.240" targetFramework="net472" developmentDependency="true" />
<package id="Polly" version="7.2.1" targetFramework="net472" />
<package id="Polly.Contrib.WaitAndRetry" version="1.1.1" targetFramework="net472" />
<package id="PropertyChanged.Fody" version="2.6.1" targetFramework="net472" />

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

@ -1,13 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0.1-preview.{height}",
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0",
"assemblyVersion": {
"precision": "revision"
"precision": "minor"
},
"semVer1NumericIdentifierPadding": 3,
"nuGetPackageVersion": {
"semVer": 2.0
},
"nugetPackageVersion": {
"semVer": 2
},
"publicReleaseRefSpec": [
"^refs/heads/develop$",
"^refs/heads/main$",
@ -15,11 +15,12 @@
],
"cloudBuild": {
"setAllVariables": true,
"buildNumber": null
"buildNumber": {
"enabled": true,
"includeCommitId": { "when": "always" }
}
},
"release": {
"branchName": "release-v{version}",
"versionIncrement": "build",
"firstUnstableTag": "preview"
"branchName": "release-v{version}"
}
}
}