Hi,
We were writing a custom workflow activity that was using LINQ (early bound).
Here we had used ILMerge to merge the early bound assemblies with the workflow assembly.
The solution was to place the following attribute in the AssemblyInfo.cs of the workflow assembly (same goes for Plugin Assembly)
[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]
The helpful thread
Hope it helps..
Hi ,
I am developing a Plugin Project “SamplePlugin” for CRM 2016 online.
I have a different projects need to refer to the SamplePlugin Project.
Also i have generated the Early bound class using CRM SVC Util and Enum Option set as well. These two files i have kept in another project called “CommonEntities”
Now i have been trying to Merge the CommonEntities.dll with SamplePlugin.dll using IL Merge.
When i build the project i am getting build error.
As per your post i have added “[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]” in
SamplePlugin AssemblyInfo.cs. Still i cant be able to build the project. CommonEntities project is not merging with SamplePlugin.dll.
I am getting “exited code with 1” error in VS Studio.
Please advice.
Thanks,
LikeLike