#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.
- 3files
- 1AL files
- 0objects
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
- Fixes: #2417 [Bug]: ““build (‘-1’) must be a non-negative value” after enabling workspace compilation (open)
- Systems: platform
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).