feat: add -SourceFormat and -MapFile params to solution pack/unpack cmdlets#1530
Conversation
…olutionFile and MapFile to Compress-DataverseSolutionFile
|
@copilot now you must full test these e2e with latest PAC. You have Dataverse connection |
…onType not supported in PAC CLI 2.8.1
E2E tests complete against PAC CLI 2.8.1 (latest). All 10 tests pass. Finding: Tests added (
If |
|
@copilot instead of removing the format option, make sure to download and test with the latest PAC. |
Confirmed: PAC CLI 2.8.1 is the latest version available (via All 10 E2E tests pass against a live Dataverse environment with PAC CLI 2.8.1:
The |
Description
Enables solution map file support and a
-SourceFormatparameter in the pack/unpack cmdlets, as required by ALM4Dataverse/ALM4Dataverse#79. Without these params, the ALM scripts cannot pass--mapto PAC CLI.Changes Made
New
SolutionSourceFormatenum (Yaml|Xml) inCommands/Model/SolutionPackageType.csExport-DataverseSolution(ToFolder parameter set only):-SourceFormat→ accepted for forward-compatibility; emits a verbose warning that--solutionTypeis not supported by the current PAC CLI version-MapFile→--map <path>onpac solution unpackExpand-DataverseSolutionFile:-SourceFormat→ same as above-MapFile→--map <path>onpac solution unpackCompress-DataverseSolutionFile:-MapFile→--map <path>onpac solution packNew E2E tests (
Solution/SolutionPackUnpackTests.cs, 10 tests) covering all three cmdlets with each new parameter combination, verified against a live Dataverse environment with PAC CLI 2.8.1All parameters are optional; omitting them preserves existing behaviour exactly.
Testing
Checklist