Why Plugin Packages
One of the benefits of using Plugin Packages is that you can add NuGet Packages to your project which is not possible when using normal Plugins.
Initialize Project
To start a new plugin package project you need to create a new project. To create a plugin package you need to use the Microsoft Power Platform CLI “PAC”
If you don’t have PAC installed you can do this through these “steps”
- open a new command line window and navigate to the folder where your project need to go
- run
pac plugin init - open the project in Visual Studio
After you generate the project your project will look something like this. Now you can start building your plugins like you have always build your plugins.

Register Plugin Package
When you have created all your code for you plugin you can register the plugin package
- Right click on your projectname and select “Pack”
- Open the “XrmToolBox”
- Go to plugin registration tool

- Click on register -> register new package
- select the nuget file created in de debug folder of your project
- This will create a package with an assembly in
- Now you can start creating your steps
Update Plugin Package
If you want to update your package you need to rebuild te solution before updating the package in XrmToolbox.
Debug Plugin Package
To make it easier to debug your plugins you can use the XrmToolBox tool “Plugin Trace Viewer” In this tool you can see all the plugins that have run and filter to find the right one