Closed goshoom closed 1 year ago
Seems easy enough, there is already a check in place if the folder exists. We could either replace it with the check for the file or add it as an additional check.
@goshoom
Did your PR's solve this issue or do we still have some work to do?
@Splaxi I haven't done anything on it, at least not yet.
@Splaxi I think this issue can be closed.
I got into situation when
Get-D365Module
failed with Cannot bind argument to parameter 'Path' because it is an empty string..Get-D365Module
callsGet-FileVersion -Path (Get-ChildItem $modulepath -Filter "Dynamics.AX.$($obj.Name).dll").FullName
and it tries to use an empty path if the DLL file doesn't exist. This happened when a re-compilation failed before completion. The folder exists, but the file doesn't. This isn't a correct state of the environment, but it shouldn't prevent me from getting a list of modules (that I want to compile). An extra check for the file existence is needed.