microsoft / powerplatform-build-tools

Power Platform Build Tools automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
MIT License
186 stars 38 forks source link

pac solution clone - cdsproj PropertyGroup values commented and don't reflect command arguments #870

Open mikefactorial opened 4 months ago

mikefactorial commented 4 months ago

When cloning a solution there are parameters to specify solution type and localization settings for the solution but those values don't get included in the cdsproj that is generated and the PropertyGroup section is commented out by default.

Additionally, these parameters don't exist for pac solution init but default values are generated in the cdsproj and also commented.

Ideally, the PropertyGroup would not be commented and would take default values if not supplied but otherwise should follow the values used in the command. Also, the options for packagetype and localize would be available in the solution init command as well

Steps to reproduce: CLONE:

  1. Connect to your Dataverse environment by using the pac auth command. For more information, see Connect to your tenant.
  2. Run the following command to clone an existing solution to your local machine:
    pac solution clone --name <solutionName> --packagetype Both --localize
  1. Navigate to the newly created solution folder and open the solution folder and open the src\.cdsproj file

The following PropertyGroup exists but is commented and the value(s) supplied for packagetype and localization don't match

INIT:

  1. Navigate to the directory on your machine where you want your repository to exist locally and run the following command:
    pac solution init --publisher-name <publisherName> --publisher-prefix <publisherPrefix> --outputDirectory <solutionName>
  1. Navigate to the newly created solution folder and open the solution folder and open the src\.cdsproj file

The following PropertyGroup exists but is commented and the value(s) supplied for packagetype and localization don't match