Search This Blog

Tuesday, August 09, 2005

Visual Studio AddIn error

Good on the Visual Studio IDE extensibility projects. However one will encounter the following error trying to compile a new Add In project.

Error 1 The best overloaded method match for 'EnvDTE80.Commands2.AddNamedCommand2(EnvDTE.AddIn, string, string, string, bool, object, ref System.Array, int, int, EnvDTE80.vsCommandControlType)' has some invalid arguments c:\RND\MyAddin1\MyAddin1\Connect.cs 40 24 MyAddin1

Error 2 Argument '7': cannot convert from 'ref object[]' to 'ref System.Array' c:\RND\MyAddin1\MyAddin1\Connect.cs 40 140 MyAddin1

Microsft is aware and has two work arounds for this. I took the second one to make it easier and await a fix from Microsoft.

Happy coding guys.