---
id: change/al-go/2433
type: change
title: "#2433 Fix workspace compilation with versioning strategy 3"
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-11-07T01:03:50.235Z"
  flags: []
generated:
  at: "2026-11-07T00:15:21.625Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 48c905a21b9ff976a58729483be66eeaaef698d1
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2433
    title: "microsoft/AL-Go#2433: Fix workspace compilation with versioning strategy 3"
    date: "2026-11-06"
    commit: 48c905a21b9ff976a58729483be66eeaaef698d1
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2433
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2433
kind: pr
base_branch: main
major: null
merged_at: "2026-11-06T13:37:40Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 42
  deletions: 5
  al: 1
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/.Modules/CompileFromWorkspace.psm1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 2417
work_items: []
systems:
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #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](https://github.com/microsoft/AL-Go/pull/2433) · 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](https://github.com/microsoft/AL-Go/issues/2417) (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).
