private MyAddin(System.IntPtr mdlDesc) : base(mdlDesc)这一步后就出bug

************** 异常文本 **************
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> Bentley.MicroStation.Exceptions.CommandTableException: Keyin "addins DemoForm ToolSettings" not mapped to method in AddIn addins.MyAddin
在 Bentley.Internal.MicroStation.CommandTables.RegisterCommandNumbers(KeyinTree tree, AddIn app)
在 Bentley.Internal.MicroStation.CommandTables.LoadKeyinTables(String xmlFileName, AddIn app)
在 Bentley.MicroStation.AddIn.Initialize(IntPtr mdlDescriptor, String appXmlFileFqn)
在 Bentley.MicroStation.AddIn..ctor(IntPtr mdlDescriptor)
在 addins.MyAddin..ctor(IntPtr mdlDesc) 位置 E:\2015demo\addins\addins\MyAddin.cs:行号 18

看到Keyin是对应的xml文件可能写错了

猜你喜欢

转载自www.cnblogs.com/hurui1/p/10175450.html