大家好,
由于我在plugin中需要用到microsoft.xrm.client.dll的clone功能,我在plugin的项目中添加使用了microsoft.xrm.client.dll reference,但在部署plugin后,crm application不能检测到microsoft.xrm.client.dll的存在,于是我就使用ILMerge.exe工具,希望能够把microsoft.xrm.client.dll合并到Plugin.dll一个文件中,然后再注册,命令如下,
ILMerge.exe /t:library /targetplatform:v4,C:\Windows\Microsoft.NET\Framework\v4.0.30319 /copyattrs /keyfile:"C:\Plugin\Plugin.snk"
/out:"C:\Output DLL\outputTest.dll" "C:\Plugin\bin\Debug\Plugin.dll" "C:\Plugin\bin\Debug\microsoft.xrm.client.dll"
但运行后,我得到如下报错,
"unresolved assembly reference not allowed: presentationFramework",由于时间比较紧急,希望能够得到大家的帮助,先谢谢大家了。
crm4.0学步