From 86d2bf7c9631bae39231b2e8a1490ef1dba2aa3c Mon Sep 17 00:00:00 2001 From: Manuel Mainz Date: Tue, 22 Aug 2023 18:37:18 +0200 Subject: [PATCH] issue #2887 set release number in assembly version AssemblyVersion to avoid version mismatch with dlls in GAC --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9ff4dd649..d9e72c08c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -49,7 +49,7 @@ steps: write-host "Build number $buildNumber" -fore white $nugetPrerelease = if ($Env:SourceBranch.StartsWith("refs/heads/release/")) { $version.Prerelease } else { "build$($buildNumber.ToString("D6"))" } write-host "Prerelease $nugetPrerelease" -fore white - $assemblyVersion = if ($version.Assembly) { $version.Assembly } else { "$($version.Major).0.0.0" } + $assemblyVersion = if ($version.Assembly) { $version.Assembly } else { "$($version.Major).0.$($version.Release).0" } write-host "Assembly $assemblyVersion" -fore white .\Build\runbuild.ps1 -properties @{"majorVersion"="$($version.Major).0"; "majorWithReleaseVersion"="$($version.Major).0.$($version.Release)"; "nugetPrerelease"=$nugetPrerelease; "assemblyVersion"=$assemblyVersion; "zipFileName"="Json$($version.Major)0r$($version.Release).zip"; "signAssemblies"=$sign; "signKeyPath"=$keyPath; "treatWarningsAsErrors"=$true; "buildNuGet"=$true; "ensureNetCliSdk"=$false} env: