powerplatform-build-tools icon indicating copy to clipboard operation
powerplatform-build-tools copied to clipboard

pac solution unpack custom PCF control

Open ddbd opened this issue 1 year ago • 2 comments

I'm using the latest version of pac

Microsoft PowerPlatform CLI
Version: 1.30.7+ge6211cf

and I'm trying to use the solution unpack command with a map file pac solution unpack --zipfile SolutionZip.zip --map map.xml --processCanvasApps --Folder s

My Solution has both, custom JavaScripts and a custom PCF control.

I'm using the map file to map the JavaScripts Files from my Soltution to a specific path: <FileToPath map="WebResources\xyz\*.js" to="..\..\..\JavaScript\*js /> So when the Solution is build by pac I have the latest JavaScript Version.

But I'm not able to do the same for the JavaScript file from a custom PCF control. I can't map the bundle.js file from the PCF to a specific location

The tool says

Skipping [...]WebResources\xyz\blabla.js' as it matches a mapping directive
Processing Component: CustomControls
 - [...]MyPCF.MyPCF
Processing Component: SolutionPluginAssemblies

Any suggestions what I'm doing wrong?

ddbd avatar Mar 02 '24 11:03 ddbd

Have you found any solutions? I have the same problem , only copy ControlManifest.xml , other files are ignored

AndrewTheWild avatar Jun 06 '25 13:06 AndrewTheWild

Have you found any solutions?

No. After a while I also stopped looking for a solution and resigned myself to the fact that PAC simply doesn't work.

What you can do: You can build your own program. This program replaces the files in the unpacked solution before the compress command is executed. This bypasses the map file and you have to adapt your own solution for each PCF component. Don't forget to manually count up the number in the manifest.

ddbd avatar Jun 09 '25 22:06 ddbd