How to debug the standard code Business Central 15.x on-prem with use docker and without Publish BaseApp
Some pictures below:
Run powershell script ….
===
#install-module navcontainerhelper -force
$accept_eula = $true
$containername = 'BCONPREM-150-W1'
$navdockerimage = 'mcr.microsoft.com/businesscentral/onprem:15.0.36560.0-w1'
$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."
$licenseFile = "D:\_DEVDOCKER\build.flf"
New-BCContainer -accept_eula:$accept_eula `
-containername $containername `
-alwaysPull `
-Credential $credential `
-usessl:$false `
-updateHosts `
-licenseFile $licenseFile `
-assignPremiumPlan `
-shortcuts Desktop `
-imageName $navdockerimage `
-auth Windows `
-includeAL `
-useBestContainerOS
Setup-NavContainerTestUsers -containerName $containername -password $credential.Password
$alProjectFolder = "C:\ProgramData\NavContainerHelper\AL\BaseApp"
Create-AlProjectFolderFromBCContainer -containerName $containername `
-alProjectFolder $alProjectFolder `
-useBaseAppProperties `
-useBaseLine
===
Wait a bit...
Useful links:
P.S.
If you need to modify (create a new version of BaseApp extension) BaseApp then you need Publish it… for the docker story this post can be useful:
Strange... first line has been commented in my script... (I think you already have it). As pre-requisite you should install navcontainerhelper
Hi
I ran the command "install-module navcontainerhelper -force" and got the error below
WARNING: Cannot access 'ci.appveyor.com/.../docker-powershell-dev'. Are you missing 'Credential' parameter in
the cmdlet?
Sohail Ahmed
858
YUN ZHU
773
Super User 2025 Season 1
Mansi Soni
569