Set up a custom BC25 repository

Increase Your DEV productivity with your own BC25 REPO

Daniel Gorski
Daniel Gorski 19. September 2024
2 Min. Lesezeit

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:

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:

  • 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:

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

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:

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


And you are ready to compile!

Compilation ended at '18:39:58.283'.


Have fun!

how-to
development
business central
bc25
base app
devops
productivity
E-Invoice Viewer for Business Central

New Open-Source E-Invoice Viewer for Business Central

View and convert German XRechnung XML files directly in Microsoft Dynamics 365 Business Central with the new open-source E-Invoice Viewer from BEYONDIT.

Weiter lesen
Weiter lesen
E-Invoice Viewer für Business Central

Neue Open-Source-App: E-Invoice Viewer für Business Central

Lesen und konvertieren Sie deutsche XRechnung-XML-Dateien direkt in Microsoft Dynamics 365 Business Central mit dem neuen Open-Source E-Invoice Viewer von BEYON

Weiter lesen
Weiter lesen