Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALDoc - Referenced module not loaded. Name:'Application' #7965

Open
navdotnetreqs opened this issue Feb 11, 2025 · 0 comments
Open

ALDoc - Referenced module not loaded. Name:'Application' #7965

navdotnetreqs opened this issue Feb 11, 2025 · 0 comments
Labels

Comments

@navdotnetreqs
Copy link

navdotnetreqs commented Feb 11, 2025

When attempting to generate documentation for any .app-file, I run into a warning that reference module Application was not loaded. This causes missing references in the final documentation.

Image

Image

I've done all steps outlined in:
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/help/help-aldoc-generate-help

  • I have tried setting the exact Application version (same as the .app-file in .alpackages) in the app.json-file, it does not matter.

  • I have tried including or excluding the target app ("Solution") from the init call, but the result is the same.

dotnet tool install docfx --version 2.70 -g

C:\Users\j\Documents\AL\Comp\Comp Solution>C:\Users\j\.vscode-insiders\extensions\ms-dynamics-smb.al-15.0.1275389\bin\win32\aldoc.exe init -o .\doc2 -t .alpackages\Microsoft_Application_24.4.22295.22576.app,".alpackages\Microsoft_Base Application_24.0.16410.19471.app",".alpackages\Microsoft_Business Foundation_24.0.16410.18040.app",".alpackages\Microsoft_System Application_24.0.16410.18942.app",.alpackages\Microsoft_System_24.0.17601.0.app,"Comp Oy_Comp Solution_1.0.26.0.app"
Writing root Table of Content
Writing configuration to aldoc.json

C:\Users\j\Documents\AL\Comp\Comp Solution>C:\Users\j\.vscode-insiders\extensions\ms-dynamics-smb.al-15.0.1275389\bin\win32\aldoc.exe build -o .\doc2 -s "Comp Oy_Comp Solution_1.0.26.0.app" -c .alpackages
**warning: Referenced module not loaded. Name:'Application', Version:24.0.0.0, AppId:00000000-0000-0000-0000-000000000000**
Writing Content
Writing Obsoletion Lists
Writing Table of Content


Build succeeded with warning.

    1 warning(s)
    0 error(s)

The only way I have succeeded in getting a pdf with correct references, is running
aldoc.exe build -o .\doc2 -s "[files-in-alpackages]" -c .alpackages
separately for each and every MS dependency, and then running

docfx build docfx.json
docfx pdf docfx.json

But in doing this, the build takes really really long (like an hour), and it generates pdf's for all of Microsoft's apps as well, which I don't want.
Internal work item: AB#565417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants