From 6fea39e45ee29336a9fc2e8ae612d02b46851355 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Fri, 28 Apr 2023 09:06:55 -0400 Subject: [PATCH] Not setting file version makes installers sad --- azure-pipelines.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 64ada77..cd0dc5b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,9 +13,27 @@ pool: variables: buildConfiguration: 'Release' + appVersion: '1.0.$(Rev:r)' steps: +steps: +- task: Assembly-Info-NetCore@3 + displayName: 'Set Assembly Info' + inputs: + Path: '$(Build.SourcesDirectory)' + FileNames: '**/*.csproj' + InsertAttributes: true + FileEncoding: 'utf-8' + WriteBOM: true + FailOnWarning: true + Authors: 'Chris Kaczor' + Copyright: 'Copyright $(date:YYYY) Chris Kaczor' + FileVersion: '$(appVersion)' + PackageVersion: '$(appVersion)' + UpdateBuildNumber: '$(Build.DefinitionName)_v$(appVersion)' + AddBuildTag: 'v$(appVersion)' + - task: DotNetCoreCLI@2 displayName: 'dotnet build' inputs: