powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

pac solution pack with mapping file does not honor wildcards in file to file mapping

Open SigrunO opened this issue 6 months ago • 1 comments

I am trying to pack a solution with a mapping file for JavaScript and plugin dlls. The mapping for the plugin dlls does not work with folder wildcards in FileToFile mapping. This worked well in older versions of the solution packager. The latest solution packager has the same bug.

<FileToFile` map=\"PluginAssemblies\**\this.dll\" to="..\..\Plugins\**\that.dll" />

Calling pac solution pack with such a mapping ends up with the following error message, even though the file exists.

Mapped file '..\..\Plugins\**\that.dll' doesn't exist. Skipping.

Replacing ** in the mapping by the correct folder path (e.g. Debug\net462) makes the packager work, but is not desirable.

SigrunO avatar Jul 30 '25 13:07 SigrunO

strangely the file is added to the zip if I run this on my local machine, despite the error message. But if I run this on a devops server using the same version of pac (Version: 1.45.3+g427813b (.NET Framework 4.8.9310.0)) the plugin data.xml file is added to the zip instead of the dll.

SigrunO avatar Jul 30 '25 14:07 SigrunO