problem with trying to create ssms add-in
- by Karl
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