Because of lost source control, I must decompile a plugin to edit it.
I downloaded the plugin with Assembly Recovery tool.
I decompiled and exported the plugin with dotpeak.
In Visual Studio 2019 I have added the Microsoft.crmSdk.XrmTooling.CoreAssembly v6.1.1 with nuget.
After following all the above steps I am left with 99+ “cannot explicitly call operator or accessor” errors in the plugin.
Here are two examples:
1. IOrganizationService organizationService = ((IOrganizationServiceFactory) serviceProvider.GetService(typeof (IOrganizationServiceFactory))).CreateOrganizationService(new Guid?(((IExecutionContext) service).get_UserId()));
Error CS0571 'IExecutionContext.UserId.get': cannot explicitly call operator or accessor
2. entityReference2.set_LogicalName("product");
Error CS0571 'EntityReference.LogicalName.set': cannot explicitly call operator or accessor
Why are there so many errors? Is there a step that I am missing?
What would be the best way to correct the 99+ errors