无法加载程序集--郁闷死了,藕是相当菜鸟
using System;using System.Collections.Generic;
using System.Text;
namespace HelloWorld
{
public class Main
{
public static void HelloWorld()
{
Autodesk.AutoCAD.EditorInput.Editor editor=
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
editor.WriteMessage("Hello World");
}
}
}
引用的是AutoCAD2006的acdbmgd.dll,acmgd.dll,然后调试的时候启动2005,输入NETLOAD命令载入生成的dll文件后,提示说“无法加载程序集。错误详细信息: 调用的目标发生了异常。”
为什么不能加载程序集呢?难道非得在2006里调试吗?呼叫大侠。。。
2005 = AutoCAD 2005?
acdbmgd.dll,acmgd.dll是和AutoCAD版本关联的,既然你用了2006的程序集,就必须在2006下调试。
页:
[1]