We have an scenario with the “Get-NavAppRuntimePackage” cmdlet.
Scenario: I import a runtime app and export it using the cmdlet.
Expectation: I can do the process as many times as I want.
Issue: An imported runtime app again exported is broken. The metadata is fine, but all C# files and add-ins are missing, resulting in a smaller file size.
Steps for reproduction in PowerShell:
# Build and publish "AL: Go!"
# Test: Customer List shows "Hello world" message -> OK
Get-NavAppRuntimePackage -ServerInstance bc -Tenant pko -Name ALProject1 -Path C:\ProgramData\bccontainerhelper\ALProject1.app
Uninstall-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
Unpublish-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
Publish-NAVApp -ServerInstance bc -Tenant pko -Path C:\ProgramData\bccontainerhelper\ALProject1.app -Scope Tenant -SkipVerification
Install-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
# Test: Customer List shows "Hello world" message -> OK
Get-NavAppRuntimePackage -ServerInstance bc -Tenant pko -Name ALProject1 -Path C:\ProgramData\bccontainerhelper\ALProject1_2.app
Uninstall-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
Unpublish-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
Publish-NAVApp -ServerInstance bc -Tenant pko -Path C:\ProgramData\bccontainerhelper\ALProject1_2.app -Scope Tenant -SkipVerification
Install-NAVApp -ServerInstance bc -Tenant pko -Name ALProject1
# Test: Customer List shows "Hello world" message -> NOT OK !!!
Documentation:
https://learn.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.apps.management/get-navappruntimepackage
We would like to have a command to simply give the package that is publish to the server continuously as many times as needed, as we don't have that at the moment.
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team