You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET 9与AutoCAD 2025 .NET API兼容性疑问及加载报错求助

.NET 9与AutoCAD 2025 API兼容性及插件加载失败问题解析

问题概述

AutoCAD插件从.NET 8升级到.NET 9后,在AutoCAD 2025中执行NETLOAD命令加载时触发错误:

Cannot load assembly. Error details: System.IO.FileNotFoundException:
Could not load file or assembly 'System.Runtime, Version=9.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot
find the file specified. File name: 'System.Runtime, Version=9.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at
System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken,
IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32
methodInstCount, ObjectHandleOnStack type)

原.NET 8版本插件可正常运行,升级后无法加载,需明确二者兼容性情况及解决方向。

兼容性说明与处理方案

  • AutoCAD 2025官方仅将.NET 8列为插件开发的支持目标框架,未对.NET 9提供官方兼容支持。AutoCAD的宿主运行环境未预装.NET 9核心组件(如System.Runtime 9.0.0.0),这是导致加载失败的直接原因。
  • 可行处理方式:
    1. 回退插件目标框架至.NET 8,这是最稳定且符合官方规范的方案,可确保插件在AutoCAD 2025中正常运行。
    2. 若需测试.NET 9,可手动将.NET 9核心运行时部署至AutoCAD程序目录,或通过配置app.config实现程序集绑定重定向,但该方式未经过官方验证,可能引发未知兼容性问题。
  • 长期建议:等待Autodesk发布支持.NET 9的AutoCAD更新补丁,或后续版本的AutoCAD正式兼容.NET 9。

内容的提问来源于stack exchange,提问作者Balaji A

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 17:59:51