Autodesk Forge Design Automation for Inventor AppBundle inte



我已经创建了一些与Inventor配合良好的AppBundle,并且我必须包含Autodesk.Inventor.interop.dll才能使插件正常工作。现在我有一个插件,我正在部署dll,但它无法解析dll或其依赖项之一。

以下是实际日志内容:

InventorCoreConsole.exe Information: 0 : Opening document: T:AcesJobsd5df421ba2ab4c098cfaef8b4db76b76inputFilesThisJobAssembly.iam
InventorCoreConsole.exe Information: 0 : Opened
[07/29/2020 17:25:49] InventorCoreConsole.exe Information: 0 : Getting Inventor plug-in.
[07/29/2020 17:25:49] InventorCoreConsole.exe Information: 0 : Plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49]     InventorCoreConsole.exe Information: 0 : Activating plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49]     InventorCoreConsole.exe Information: 0 : Deactivating plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49] Could not load file or assembly 'Autodesk.Inventor.Interop, Version=23.1.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564' or one of its dependencies.

我可以在本地调试这个插件而不会出现问题。然后我获取了整个输出文件夹的内容,并尝试了一下,结果收到了同样的错误。我已经确认输出中的dll是23.1.0.0版本。

我看到的这个应用程序和以前的应用程序之间的唯一区别是实现了几个iLogic程序集。不确定这是否会引起问题。

有什么想法吗?

要解决此问题,我相信您只需设置;嵌入互操作类型";至";真"用于Inventor外接程序项目中的Interop Dll(如果还没有(。另一种选择是将";Autodesk.Inventor.interop.dll";在您的捆绑包中以及您的加载项Dll中。

希望这能有所帮助。如果没有,请告诉我。

最新更新