microsoft / powerplatform-vscode

The Power Platform VSCode extension makes it easy to manage Power Platform environments and allows the developer to create, build and deploy Power Platform solutions, packages and portals.
MIT License
208 stars 37 forks source link

`pac solution clone` default packagetype differs from helptext #263

Closed filcole closed 2 years ago

filcole commented 2 years ago

When testing pac solution clone without any --packagetype flag I am getting a 'Both' unpack, whereas the docs say the default should be 'Unmanaged'

❯ pac solution clone --name FormXmlCapitalisation
Connected to...Phil Cole's Environment
Starting Solution Export...
Unmanaged solution export succeeded.
Starting Solution Export...
Managed solution export succeeded.
Unpacking Solution...

Extracting C:\Users\filco\AppData\Local\Temp\FormXmlCapitalisation.zip and C:\Users\filco\AppData\Local\Temp\FormXmlCapitalisation_managed.zip to C:\Dev\Learning\capitalisation\FormXmlCapitalisation\src

Skipping localization
Processing Component: Entities
 - pgc_TableA
 - pgc_tableb
Processing Component: EntityRelationships
Processing Component: AppModuleSiteMaps
 - pgc_MyApp
Processing Component: AppModules
 - pgc_MyApp

Unmanaged Extract complete.

Skipping localization
Processing Component: Entities
 - pgc_TableA
 - pgc_tableb
Processing Component: AppModuleSiteMaps
 - pgc_MyApp
Processing Component: AppModules
 - pgc_MyApp

Managed Extract complete.

Unpacked Solution.
Solution clone extract succeeded.
Dataverse solution project with name 'FormXmlCapitalisation' created successfully in: 'C:\Dev\Learning\capitalisation'

The solution.xml says it's a 'Both' export:

$ grep Managed FormXmlCapitalisation/src/Other/Solution.xml
    <Managed>2</Managed>

The help text says Unmanaged should be the default:

image

davidjenni commented 2 years ago

tracking bug AB#2901247

tehcrashxor commented 2 years ago

Updated in the PAC main branch, and will roll out with the next release.