Skip to content
Set up a custom BC25 repository

Increase Your DEV productivity with your own BC25 REPO

Daniel Gorski
Daniel Gorski September 19, 2024
3 min read

Imagine you are building an extension on some standard tables and you would like to find out where some procedures or fields are used in the whole microsoft base app.

There are several reasons why you should look after some background business logic.

Jump into your extension you are developing at and select that procedure or field you are looking for:

VS Code AL editor with the right-click context menu open on a procedure, showing

Hit Shift+Alt+F12 or look for "Find All References" in your context menu.

But: You are going to find nothing!

So let's make it work!

Follow these steps:

  • So let's try to compile the base app and see if it works. Download your specified artifact:
Get-BcArtifactUrl -type onprem -country 'de' -select Latest

or for major releases:

Get-BcArtifactUrl -type Sandbox -country 'de' -select NextMajor -accept_insiderEula
  • This command will show up your artifact url:
$url = https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/25.0.23364.24387/de
  • Let's download BC25 Business Central DE-localization:
Download-Artifacts -artifactUrl $url -includePlatform
  • On your local drive, system will create this folder where you can jump in, to get the base app:
C:\bcartifacts.cache\sandbox\25.0.23364.24387\platform\applications\BaseApp\Source\Base Application.Source.zip

This is how the zip file looks like:

Windows Explorer view of the extracted Base Application.Source.zip, listing the base app's module folders and root AL source files

  • Create a local repository and extract all files from that base-zip file into a folder called "src" of local project "de-bc25":

Your src-folder contains now all unpacked files:

Windows Explorer view of the local de-bc25 repo's src folder after extraction, showing the same base app module folders unpacked locally

  • Take the System App, Application App, Business Foundation and the System Application App and put them into the ".alpackages" folder:

Windows Explorer view of the .alpackages folder containing the four required app files: System.app, Microsoft_Application.app, Microsoft_Business Foundation.app, and Microsoft_System Application.app

From here:

  • System.app →
    C:\bcartifacts.cache\sandbox\25.0.23364.24387\platform\ModernDev\program files\Microsoft Dynamics NAV\250\AL Development Environment

  • Microsoft_System Application.app →
    C:\bcartifacts.cache\sandbox\25.0.23364.24387\platform\applications\System Application\Source

  • Microsoft_Application.app →
    C:\bcartifacts.cache\sandbox\25.0.23364.24387\platform\applications\Application\Source

  • Microsoft_Business Foundation.app →
    C:\bcartifacts.cache\sandbox\25.0.23364.24387\platform\applications\BusinessFoundation\Source

  • Copy all assemblies (all dll-files) into your local project

From here:

C:\bcartifacts.cache\sandbox\25.0.23364.24401\platform\ServiceTier
C:\ProgramData\BcContainerHelper\Extensions\de-bc25\.netPackages\assembly
C:\ProgramData\BcContainerHelper\Extensions\de-bc25\.netPackages\Service

And copy them into your ".netpackages" folder:

Windows Explorer view of the .netpackages folder populated with the copied assembly DLL files needed to compile against the base app

  • Add the runtime-property "15.0" into your app.json. It should look like this:

app.json in VS Code with the runtime property set to


And you are ready to compile!

VS Code with app.json open and the output panel showing a successful compile ending with

Compilation ended at '18:39:58.283'.


Have fun!

Related posts

▸ All posts
Find references in Business Central Base App

Where-Used Search in the BC Base App

January 03, 2022 · Daniel Gorski

Find All References finds nothing in the Business Central Base App? Unpack the Base App source from the artifact and compile it locally. Step by step.

Read More
Read More: How-To Use Where-Used in Base App
RegEx usage for Business Central development

Your daily Business with RegEx as a Developer

June 23, 2021 · Daniel Gorski

Use regular expressions for search & replace in your daily Business Central development – e.g. adding a parameter to every TransferFields call.

Read More
Read More: Your daily Business with RegEx as a Developer
GitHub Workflow for multiple Business Central apps

Detect ID Range Conflicts with GitHub Workflows

October 09, 2024 · Daniel Gorski

Manage several Business Central apps in one GitHub repo: a GitHub workflow detects object range conflicts and updates the README automatically.

Read More
Read More: Minimize Conflicts in a multi-project repo with GitHub Workflows