How I reduced my on-prem pipeline from 138 to 17 builds of Business Central
Eric explains how he cut his on-prem Business Central runtime app pipeline from 138 builds to 17 by grouping cumulative updates that share the same emit version. The emit version is read from Microsoft.dynamics.nav.languageanalysis.dll, fetched from BC artifacts with an HTTP range stream so only that file is downloaded from each zip. Emit versions exist from version 22; 21 reports zero.
- The on-prem challenge and runtime apps
- Building 138 runtime apps and discovering emit version
- Finding emit versions in the language analysis DLL
- HTTP range stream for partial downloads
- Analyzing emit version patterns across releases
- Release-by-release emit version breakdown
- Reducing from 138 to 17 builds
- Maintaining and sharing the solution
Overview
Apps for on-prem Business Central can be distributed as runtime packages, and a runtime app can only be generated by a specific version of Business Central. Covering every cumulative update meant 138 unique builds in Erik Hougaard’s pipeline, depending on how far back each app went.
He finds that the emit version, a five-digit constant in Microsoft.dynamics.nav.languageanalysis.dll, shows which versions can share a runtime app. To read it without downloading whole artifact zips, he uses HTTP range requests to pull only the needed file. He then analyzes emit versions across releases, reduces the builds to 17, and makes the list generation part of his pipeline.
Key points
- Runtime apps (encrypted, no source code) can only be generated by a specific version of Business Central, so the on-prem pipeline built one per CU, up to 138 builds.
- Two CUs can share a runtime app if they have the same emit version, a five-digit constant in Microsoft.dynamics.nav.languageanalysis.dll whose thousands match the major version. Microsoft had no list of emit versions.
- Versions older than 21 have no emit version constant, and version 21 reports zero in every build, so the approach applies from version 22.
- An HTTP range stream reads only the zip header, the directory listing and the target file from the 3.3 GB artifact zip. This works because the BC artifacts web server supports range requests.
- Version 22 has a single emit version for all CUs. Versions 23, 24 and 27 got a new one at .1. Version 25 changed at .2, version 26 at .2 and .3, 27 again at CU 13, 28 at .7, and 29 had no change at .1.
- Grouping by emit version reduced the builds from 138 to 17. The list is now generated in his pipeline and updated as new CUs come out.
Features
| Feature | Status | At |
|---|---|---|
| Runtime app distribution | status not stated | 0:57 |
| Emit version detection | status not stated, demoed | 2:34 |
| HTTP range stream extraction | status not stated, demoed | 4:33 |
AL objects mentioned
As heard in the captions. A name that matches one object page by exact type and name links to it; the others stay as named.
- other “Microsoft.dynamics.nav.languageanalysis.dll” at 4:13
Quotes
- 0:20 “we have a lot of our apps that also support on-prem and the on-prem landscape is vast when it comes to versions.”
- 2:34 “how do I determine if two CUs could in reality use the same runtime app? And he said, oh, but you can you can”
- 3:25 “dear Microsoft, do you have a list over emit versions? I said, no. No worries.”
- 5:44 “http can do partial downloads of a file so like for instance if you have a big download and it”
- 7:53 “because 21 reports there’s an emit version in the DLL, but it’s zero in every single build.”
Presenters (as heard): Eric, Stefan, Claude.
