pac solution sync should accept a mapping file #832
Replies: 3 comments 6 replies
-
If you use cdsproj, it accomplishes what map.xml does historically, but only for dlls and pcf today. We still have full parity a gap with web resources. Have look at this repo: https://github.com/devkeydet/HelloFusionDev. We are trying to encourage people to move away from map.xml and use the more modern approach to accomplish the same thing with cdsproj. But I acknowledge the gap with web resources and the general feedback. The repo I link to above does use map.xml for web resources, but via a cdsproj file. We can definitely improve the overall experience. Have a look at the repo and let's keep the discussion going. BTW, I moved this to a discussion and not an issue. We generally prefer enhancement requests start as discussions. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Marc! I've added the
However, when doing this, it still wants to include the exported plugin assemblies and web resource files in the solution folder. To work around this, I have a PowerShell script which exports the solutions and runs the unpack with the mapping file. pac solution export --name solution --async --overwrite --path ./Solution.zip
pac solution export --name solution --async --overwrite --path ./Solution_managed.zip --managed
pac solution unpack --zipfile ./Solution.zip --allowDelete --allowWrite --clobber --packagetype Both --map ./mapping.xml --folder ./src I'd love to see a web resource project that ties into the .cdsproj. It would be especially awesome if it was pre-configured to use TypeScript, @types/xrm, minifying/optimizing for production builds, etc. Looking forward to any developments in this area. Let me know if you need any beta testers, I'd be happy to help out! P.S. you should update the README so it asks to start feature requests as Discussions. Right now it says, "[we] do welcome your suggestions via this repository's issue tracker." |
Beta Was this translation helpful? Give feedback.
-
Working on a PR internally to add
Doing so would make it easier to scaffold, generally set up, and work more consistently with how pcfproj/csproj work with cdsproj, but for web resources. But at least for those who understand map.xml... |
Beta Was this translation helpful? Give feedback.
-
The
pac solution sync
command should accept a--map
parameter like thepac solution unpack
command does. This way a solution mapping file can be used. Without this, when we runpac solution sync
, it places the plugin assembly DLL and web resource files in the solution folder. However, we normally build those via our CI/CD pipeline and use the mapping file to "inject" them into our solution when we pack it.Beta Was this translation helpful? Give feedback.
All reactions