Dynamics插件抛出“无法加载文件或程序集”错误

时间:2020-07-09 05:57:46

标签: plugins microsoft-dynamics filenotfoundexception ilmerge

我有一个Dynamics365插件,它引用了我编写的Nuget。插件的构建和注册以及所有库的合并均有效。

触发插件后,出现以下错误:

Error 'System.IO.FileNotFoundException: Could not load file or assembly 
'CustomNuget.Xrm.Common.XYZ, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its 
dependencies. The system cannot find the file specified.

上述错误中提到的程序集是插件中包含的Nuget。

我可以确定的是,该异常是从上述Assembly(Nuget)中包含的Method中引发的。

当我使用ILSpy检查插件assemby时,一切看起来都很好。

这怎么可能是一个异常告诉我未找到该程序集,但该错误正是从该程序集引发的呢?

有人有主意吗?

0 个答案:

没有答案