Skip to content

After solution unpack xml files have yml extension #1406

Description

Describe the bug
After exporting a solution with pac-cli tools and using pac solution unpack, the attributeimageconfigs files are generated with an incorrect file extension, i.e. .yml instead of .xml.

When packing the solution, this causes the import to fail. If the extension of the affected files is manually changed to .xml and the solution is packed again, the import completes successfully.

To Reproduce
Steps to reproduce the behavior:

  1. Export a solution using pac-cli
  2. Unpack the solution using:
    pac solution unpack -z $zipFile -f $sourcePath
  3. Refer to the screenshot below (VS Code)

Expected behavior
The file extension should match the file content, i.e. the files should have .xml as extension.

Screenshots
VS Code indicating the change (add/delete), showing the file content as XML while the file extension is .yml

Image

Desktop (please complete the following information):

  • OS: Windows 11 25/H2
  • VS Code with Power Platform Tools (auto-update) - version 2.0.145

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions