#2301 Provide package cache to aldoc when building reference documentation
The aldoc command now receives a populated package cache to resolve cross-module references in generated reference documentation, fixing unresolved links that occurred when building documentation for artifact-based apps.
- 5files
- 2AL files
- 0objects
Pull request · merged into main on 2026-07-17 by spetersenms · 5 files (+73 -11), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- aldoc now receives –packagecache parameter with all apps and their dependencies
- Fixes ‘Referenced module not loaded’ errors in reference documentation
- Resolves cross-module links in generated documentation
- Uses dependencies already computed by CalculateProjectsAndApps
- Addresses issue with artifact-based apps lacking default package cache
- Behaviour changes for users or extensions.
AL objects touched
Actions/BuildReferenceDocumentation/BuildReferenceDocumentation.HelperFunctions.ps1: modified, not in the BC? snapshotActions/BuildReferenceDocumentation/BuildReferenceDocumentation.ps1: modified, not in the BC? snapshot
Context
- Fixes: #2302 [Bug]: AlDoc does not use –packagecache when building reference documentation (closed)
- Systems: development, 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).