PCF Project Support.

Create a new project

To create a new PCF control project, use the main XrmToolkit menu

After filling out all the fields in the dialog, you can optionally choose to link the PCF project to an instance in Dataverse. After connecting to Dataverse, you will be promted to either select an existing solution or create a new one. Your PCF control will be added to this solution upon publishing to D365.

A page to complete the wizard will be presented, and upon pressing the 'Finish' button, your project will be created.

Note:
The creation process includes running the 'npm install' command on the newly created project. This command can take a bit of time to complete.

When the folder loads in Visual Studio you can see all of the assets including the ControlManifest.Input.xml file. Double clicking on it will open the editor included with XrmToolkit for easily modifying the different properties of the file. For more information see the documentation here.

Right-clicking on the main project folder displays the following menu:


  1. Builds the both the PCF control project and the CDS solution project in 'Release' mode and deployes the solution to Dataverse
  2. Builds the both the PCF control project and the CDS solution project in 'Debug' mode and deployes the solution to Dataverse
  3. Builds only the PCF control project in 'Debug' mode
  4. Runs the test harness and opens up your default browser to the test page
  5. Opens a dialog for editing different properties about the PCF control. For more details see below
  6. Switch connections to another linked Dataverse organization
  7. Link the PCF project to another Dataverse organization
  8. Un-link the project from the current Dataverse organization

PCF Project Properties

Opening the 'Project Properties' for the PCF project displays a dialog for editing different aspects of the PCF project.