CSOM ILMerge [英] CSOM ILMerge
问题描述
你好
是否有人尝试ILMerge Microsoft.SharePoint.Client.dll(尤其是来自Microsoft.SharePointOnline.CSOM,它用于SharePoint Online)并成功运行?
当我在控制台应用程序中运行它时,总是在clientContext.ExecuteQuery();时出现异常.被执行.
System.InvalidCastException:'无法转换类型为'System.Collections.Generic.Dictionary`2 [System.String,System.Object]'的对象来类型为'Microsoft.SharePoint.Client.ChangeToken'."
没有ILMerge代码可以正常工作.
您是否使用了最新版本的Microsoft.SharePointOnline.CSOM?
https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM >
请检查.NET Framework的版本,尝试在控制台应用程序中将目标框架设置为.NET Framework 4.5.
"ILMerge"代码是从这里来的? https://github.com/Microsoft/ILMerge
我建议提供有关如何重现此问题的更多详细信息,其他人将可以更轻松地进行研究.
最好的问候,
丹尼斯
Hello,
Has anyone tried to ILMerge Microsoft.SharePoint.Client.dll (especially from Microsoft.SharePointOnline.CSOM, it is for SharePoint Online) and successfully run?
When I run it in console app I always get exception when clientContext.ExecuteQuery(); being executed.
System.InvalidCastException: 'Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'Microsoft.SharePoint.Client.ChangeToken'.'Without ILMerge code works fine.
Hi,
Did you use the latest version of the Microsoft.SharePointOnline.CSOM?
https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM
Please check the version of your .NET Framework, try to set the target framework to .NET Framework 4.5 in your console application.
The "ILMerge" code is from here? https://github.com/Microsoft/ILMerge
I suggest provide more details about how to reproduce this issue, others would get easier to research on it.
Best Regards,
Dennis
这篇关于CSOM ILMerge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!