问题试图创建SSMS附加 [英] problem with trying to create ssms add-in

查看:160
本文介绍了问题试图创建SSMS附加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个加载项SSMS 2008年和/或2008 R2,但我碰到的一个问题,立竿见影。

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

我可以让我的加载项工作,并在SSMS启动时得到它简单地显示一个消息框。

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

不过,下载各种code-样品后,试图引用Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache当我得到一个空引用异常:

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;

我使用SSMS 2008年或SSMS 2008 R2时出现此问题。我工作的Visual Studio 2010。

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

这是一个有点令人沮丧,因为我渴望更多地了解SSMS加载项,但似乎无法让过去的几样在那里。

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.

任何意见/提示AP preciated。

Any advice/tips appreciated.

感谢

推荐答案

卡尔,我不知道你在这里具体问题,但回答另外一个问题,我碰到了一堆的文章和链接来编写SSMS插件 - 也许他们中的一个将是对你有用:

Karl, I don't know about your concrete problem here, but answering another question, I came across a bunch of articles and links on writing SSMS plug-ins - maybe one of them will be useful to you:

有些信息可以在这里找到:

Some information can be found here:

  • <一个href="http://jcooney.net/post/2007/11/26/The-Black-Art-of-Writing-a-SQL-Server-Management-Studio-2005-Add-In.aspx"相对=nofollow>编写SQL Server Management Studio中加载的黑色艺术
  • <一个href="http://sqlblogcasts.com/blogs/jonsayce/archive/2008/01/15/building-a-sql-server-management-studio-addin.aspx"相对=nofollow>构建SQL Server Management Studio中加载
  • <一个href="http://aspalliance.com/1374_Extend_Functionality_in_SQL_Server_2005_Management_Studio_with_Addins.all"相对=nofollow>扩展功能在SQL Server 2005 Management Studio中使用加载项
  • <一个href="http://markegilbert.word$p$pss.com/2006/12/18/ssms-scripter-internals-part-2-of-3-%E2%80%9Cplugging-in%E2%80%9D/"相对=nofollow> SSMS的编剧 - 内幕,第2部分 - 插入
  • The Black Art of Writing a SQL Server Management Studio Add-In
  • Building a SQL Server Management Studio Add-In
  • Extend Functionality in SQL Server 2005 Management Studio with Add-ins
  • SSMS Scripter - Internals, part 2 - plugging in

这篇关于问题试图创建SSMS附加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆