我尝试制作一个动态 CRM 在线插件,它使用 SpreadsheetGear 2012 dll 来处理在完成更新时作为记录注释附加的 excel 文件。
然而,在我注册插件后,我不断得到这个:
Could not load file or assembly 'SpreadsheetGear2012.Core, Version=7.0.5.139, Culture=neutral, PublicKeyToken=39c186f5904944ec' or one of its dependencies. The system cannot find the file specified.
我需要先合并我的插件 dll 和这个 spreadsheetgear2012 吗?还是不能在动态 crm 在线插件中包含第 3 方库?
最佳答案
一个插件只能有一个 dll,但您可以尝试使用 ILMerge (http://www.microsoft.com/en-us/download/details.aspx?id=17630) 将您的插件 dll 与第 3 方 dll 合并。
不过,这仅在第 3 方库使用“Dynamics CRM 沙盒模式”中支持的代码时才有效。
关于c# - 在 Dynamic CRM Online 中使用 SpreadsheetGear 2012 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17442921/