AutoCAD:使用VS2012调试AutoCAD 2010中.Net DLL类库

问题描述:使用VS2012新建.Net DLL类库,进行在AutoCAD中进行调试,断点无响应

原因揣测:AutoCAD始终使用最计算机中最新版本的.Net Framework,如果遇到问题可尝试使用指定版的.Net Framework

解决方案:修改acad.exe.config,如下

<configuration>
   <startup>
< !--We always use the latest version of the framework installed on the computer. If you are having problems then explicitly specify .NET 2.0 by uncommenting the following line.--> <supportedRuntime version="v2.0.50727"/> </startup> < !--All assemblies in AutoCAD are fully trusted so there's no point generating publisher evidence--> <runtime> <generatePublisherEvidence enabled="false"/> </runtime> < /configuration>

其中:

<supportedRuntime version="v2.0.50727"/>

可尝试v3.5、v4.0.30319等

具体看 C:\windows\Microsoft.NET\Framework 或 C:\windows\Microsoft.NET\Framework64 中已安装的版本。

另找到一篇文章:http://www.objectarx.net/forum.php?mod=viewthread&tid=4771

原文地址:https://www.cnblogs.com/yipu/p/2984262.html