- Generates the plugin registration file
- Registers the new plugins and updates the existing plugins.
- Loads the custom plugins in the tree view.
To register plugins from you local visual studion development IDE or from the azure devops build pipeline.
- Install the this package from the nuget
Install-Package PluginRegistration.TaskRunner -Version 1.1.2
- After installing the above package successfully it will add the below files to your plugins project.
📦Project.Xrm.Plugins
┣ 📂PluginRegistrationTaskRunner
┃ ┗ 📜deploy-plugins.bat
┣ 📜RegisterFile.xml
- Make sure to update the connection string in the deploy-plugins.bat file.
- Generate and replace the "RegisterFile.xml" using xrm toolbox "Plugin registration using xml" tool and save the output xml into the plugins project with the same name.
- If you are registering your plugins for the first time then feel free to update the RegisterFile.xml file with the relevant plugin steps and update the GUIDs to the empty guid(00000000-0000-0000-0000-000000000000)
- Plugin registration task runner will automatically generate the new guid and update the registration xml file with newly generated id.
- Now run the deploy-plugins.bat file from the command prompt or run directly from your visual studio. Note: To run the bat file directly from the visual studio install this extension to your visual studio https://marketplace.visualstudio.com/items?itemName=MadsKristensen.OpenCommandLine)
- That's it! Have fun. I will cover how to setup the azure devops pipeline in my upcoming blog post.