1. 程式人生 > >private MyAddin(System.IntPtr mdlDesc) : base(mdlDesc)這一步後就出bug

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檔案可能寫錯了