Plugins are custom classes that implement the IPlugin interface. The class can be written in any .NET framework-compliant language such as Microsoft Visual C# or Microsoft Visual Basic .NET. The following screenshots illustrate how users can create a plugin project.
- Firstly, the user can create a new class library project:
Creating a Plugin Class Project
- After the project is created, the user can add a new Class... item to the project. The new class would act as the plugin class:
- Here's how we can add a new class file to the solution:
Selecting the appropriate item type
- All the plugin projects must have a reference for the Microsoft.Xrm.Sdk and Microsoft.Crm.Sdk.Proxy assemblies.
If a person is writing a plugin for the first time, they must download the appropriate Dynamics SDK matching the target environment. You can refer to this MSDN...