Error during Merge-Script and PowerShellCore = $true

I am trying to convert my script to EXE and bundling it with PS Core, for which I included PowerShellCore = $true in the configuration file.

I am using v5.4.4. of the module.

I ran Merge-Script with -Verbose and I was able to capture the messages. From this logs, the last two lines show the errors.

I have the temporary files in a ZIP (csproj, cs, etc.) so let me know if you want me to send them.

Please advise promptly.

This looks like a bug. I will have to take a look at get back to you.

I suppose this problem is related somehow to