microsoft / microsoft/powerplatform-vscode
Need to run `pac solution pack` with -pca twice to include canvas app changes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
When using pac solution pack with the processCanvasApp flag, it looks like changes to the canvas app source code are not included in the zipped solution unless you run the pac command twice.
I also noticed a difference in file size for the zip files, where the first run results in a smaller file than the following.
See below for examples of how I run the command and the resulting zip files:
PS C:\depot\powerAppsTest> pac solution pack -pca -z temp/zippedSolution.zip -f .\PowerPlatform\BcSampleAppsSolution\
Packing Solution...
Packing C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution to C:\depot\powerAppsTest\temp\zippedSolution.zip
Processing Component: Entities
Processing Component: Roles
Processing Component: Workflows
Processing Component: FieldSecurityProfiles
Processing Component: Templates
Processing Component: EntityMaps
Processing Component: EntityRelationships
Processing Component: OrganizationSettings
Processing Component: optionsets
Processing Component: CustomControls
Processing Component: EntityDataProviders
Processing Component: CanvasApps
- new_bcwarehousehelper_290e3
-- packing Canvas app new_bcwarehousehelper_290e3...
Pack from C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution\CanvasApps\src\new_bcwarehousehelper_290e3 --> C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution\CanvasApps\new_bcwarehousehelper_290e3_DocumentUri.msapp
source format version: 0.24
Unmanaged Pack complete.
Packed Solution.
PS C:\depot\powerAppsTest> pac solution pack -pca -z temp/zippedSolution2.zip -f .\PowerPlatform\BcSampleAppsSolution\
Packing Solution...
Packing C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution to C:\depot\powerAppsTest\temp\zippedSolution2.zip
Processing Component: Entities
Processing Component: Roles
Processing Component: Workflows
Processing Component: FieldSecurityProfiles
Processing Component: Templates
Processing Component: EntityMaps
Processing Component: EntityRelationships
Processing Component: OrganizationSettings
Processing Component: optionsets
Processing Component: CustomControls
Processing Component: EntityDataProviders
Processing Component: CanvasApps
- new_bcwarehousehelper_290e3
-- packing Canvas app new_bcwarehousehelper_290e3...
Pack from C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution\CanvasApps\src\new_bcwarehousehelper_290e3 --> C:\depot\powerAppsTest\PowerPlatform\BcSampleAppsSolution\CanvasApps\new_bcwarehousehelper_290e3_DocumentUri.msapp
source format version: 0.24
Unmanaged Pack complete.
Packed Solution.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two pac solution pack -pca runs against the reported CanvasApps\src content and compare the resulting zip files. Start at the solution-pack path handling the processCanvasApp flag and CanvasApps, then verify that one invocation includes the current canvas app changes and produces the expected archive.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100