problem with trying to create ssms add-in

Posted by Karl on Stack Overflow See other posts from Stack Overflow or by Karl
Published on 2010-05-29T14:53:43Z Indexed on 2010/05/29 15:02 UTC
Read the original article Hit count: 342

Filed under:
|

I'm trying to create an add-in for SSMS 2008 and/or 2008 R2 but I've run into a problem straight away.

I can get my add-in to work and on SSMS start-up get it to simply show a message box.

However, after downloading various code-samples, when trying to reference Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache I get a null reference exception:

Commands2 commands = (Commands2)ServiceCache.ExtensibilityModel.Commands;

I get this problem when using SSMS 2008 or SSMS 2008 R2. I'm working on Visual Studio 2010.

It's a bit frustrating because I'm keen to learn more about SSMS add-ins but can't seem to get past the few samples out there.

Any advice/tips appreciated.

Thanks

© Stack Overflow or respective owner

Related posts about add-in

Related posts about SSMS