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, as shown in the following screenshot:
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 the 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...