Skip to content

Commit

Permalink
issue JamesNK#2887 set release number in assembly version AssemblyVer…
Browse files Browse the repository at this point in the history
…sion to avoid version mismatch with dlls in GAC
  • Loading branch information
Manuel Mainz committed Aug 22, 2023
1 parent 0a2e291 commit 86d2bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 86d2bf7

Please sign in to comment.