It is the Application target framework .net version is the reason why you see one and not the other Autodesk.AutoCAD.Runtime.CommandMethod seems to only be in 4.5 or higher otherwise you see only Autodesk.AutoCAD.Runtime.CommandMethodAttribue. I could be wrong about this have been racking myself silly for four days to realize why I Kept getting Error Type 'Autodesk.AutoCAD.Runtime.CommandMethod' is not defined. My default is set to 4.0
CommandMethod and CommandMethodAttribute are one and the same.
The compiler allows attributes whose names end with 'Attribute' to be abbreviated to exclude the Attribute.
If you're getting that error, it's most-likely because your target framework is not the same as the framework of the managed assemblies that you're referencing.
@Jedimaster wrote:It is the Application target framework .net version is the reason why you see one and not the other Autodesk.AutoCAD.Runtime.CommandMethod seems to only be in 4.5 or higher otherwise you see only Autodesk.AutoCAD.Runtime.CommandMethodAttribue. I could be wrong about this have been racking myself silly for four days to realize why I Kept getting Error Type 'Autodesk.AutoCAD.Runtime.CommandMethod' is not defined. My default is set to 4.0