-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pac solution unpack --allowDelete --processCanvasApps
will delete canvas app source if run a second time
#334
Comments
I also have this issue |
Looks to be the same issue as here microsoft/powerplatform-build-tools#135 |
I also have this issue |
@filcole did you try the following flag in the build task in the advanced section? This looks, from my testing, to add/remove 2 parameters, one being the offender!: The defaults for both these parameters are false so has potential, but feels counter intuitive to turn off allowWrite. |
No. I experienced the issue when using |
Fixed in latest versions of PAC CLI and other libraries |
The allowDelete and processCanvasApps flags on pac solution unpack seem incompatible. With a solution that contains a canvas app, e.g. a model driven app with a new Power Fx component library, then the first unpack will process and expand the solution and associated canvas app (.msapp) correctly. If the same command is run again the files in CanvasApps\src\* are deleted.
First Unpack
Second Unpack
Notice 18 unnecessary files reported and deleted! Checking the file system we can see the canvas apps source files have been deleted. 😱
Here's the solution zip used for testing. It contains a table 'Prime Minister', a 'Prime Minister App', a component library adding a 'Replace Incumbent' button to the main form on the 'Prime Minister' table.
PacSolutionUnpackCanvas_1_0_0_1.zip
The text was updated successfully, but these errors were encountered: