Closed FSharpCSharp closed 4 months ago
That DLL was moved into the management folder under the service folder (as the service folder was upgraded to dotnet core) You can still load it - but you need to do it manually.
Inside the container, you need to run:
import-module (Get-Item 'C:\Program Files\Microsoft Dynamics NAV\*\Service\Management\microsoft.dynamics.nav.apps.tools.dll').FullName
Thank you for your quick response, that indeed solves my problem. I have two questions:
Thank you for your help.
It would require me to rebuild all generic images and would also incur some risk. And since this was changed 5 months ago and this is the first issue regarding that, my assumption is that it isn't much used. Having said that - you can download https://github.com/microsoft/nav-docker/blob/master/generic/Run/Prompt.ps1 and add a few lines after line 53 - and then specify the new prompt.ps1 in -myscripts - then you should have this.
I hope this message finds you well. I was wondering if you could help me understand something. Previously, all loaded modules were available by default in the container and everything worked smoothly. However, it seems that the DLLs have been moved and I now have to adjust my processes for certain versions.
I understand that there may be an adjustment effort involved, but as a Product Owner, could you please provide some support for such use cases? It would be really helpful if the DLL is always present in the new directory from now on, so that it would work in all future containers. This would save us from having to constantly adjust our processes when creating containers.
I would be grateful if you could consider this request. Thank you for your time and support.
Not sure how to respond. Business Central is a living thing and the change to dotnet core has many advantages on performance and other things. Unfortunately, that change also ment that we had to move the "old" dotnet 4.5 DLLs to another folder. Things like this will happen again - and this is one of the reasons we have created a tool like AL-Go for GitHub, to ensure that as few partners as possible will have to change their scripts themselves. The change happened 5 months ago - and this issue is the first issue with this - meaning that it is probably fair to say that it isn't frequently used.
If I am to modify the generic image to add this - I stand the risk of breaking things for the 1000s of other partners who have been working with 22 for the last 5 months.
At some point in time in the future, we might move the service tier to run on Linux and as such the generic image will change to Linux and you will have to modify scripts again - the entire model will then change.
People using AL-Go for GitHub will then just keep working. People who are maintaining their own scripts will have to adapt.
I will note it down, but a change is not coming for this in any near future.
Describe the issue When creating a Business Central 22 container, it appears that the PowerShell module “Microsoft.Dynamics.Nav.Apps.Tools” is missing after creation. This makes it impossible to use any of the CmdLets contained therein, such as Export-NAVAppTableData. The command always fails when executing the PowerShell command in the container because it cannot find it.
To reproduce the issue, I entered the container after creating it (see script below) using the command “Enter-BcContainer -containerName test-container” and tried to use the CmdLet Export-NAVAppTableData. Unfortunately, this fails with an error message and I currently do not know what else to do.
Can you please help me resolve this issue? Thank you.
Scripts used to create container and cause the issue
Full output of scripts
Scripts that cause the issue
Full output of scripts
Screenshots If applicable, add screenshots to help explain your problem.
Additional context