code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#2433 Fix workspace compilation with versioning strategy 3

The versioning strategy 3 workspace compilation was failing because an appBuild sentinel value of -1 was passed to the .NET version constructor. The fix preserves each app's existing build component when the build number is -1 or omitted, while treating an explicit 0 as a valid build number.

Pull request · merged into main on 2026-11-06 by aholstrup1 · 3 files (+42 -5), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Update-AppJsonProperties no longer passes the -1 sentinel from versioning strategy 3 into the .NET version constructor
  • The app’s existing build component is kept when the build number is -1 or omitted
  • An explicitly supplied 0 is applied as a valid build number
  • Regression tests cover app and test-app versions; parameter help and release notes were updated
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/.Modules/CompileFromWorkspace.psm1: modified, not in the BC? snapshot

Context

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).