简体   繁体   English

用于特定SSMS版本的Microsoft SQL Server Management Studio Addin

[英]Microsoft SQL Server Management Studio Addin for specific SSMS version

I created a addin for ssms. 我为ssms创建了一个插件。 I have two versions of SSMS (11.0.2100.60 and 12.0.2000.8). 我有两个版本的SSMS(11.0.2100.60和12.0.2000.8)。 I want to addin worked only in SSMS version 11.0.2100.60. 我想添加仅在SSMS版本11.0.2100.60中使用。 I changed. 我变了。 addin file as follows: addin文件如下:

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
    <Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
        <HostApplication>
            <Name>Microsoft SQL Server Management Studio</Name>
            <Version>11.*</Version>
        </HostApplication>
        <Addin>
            <FriendlyName>MySSMSAddin</FriendlyName>
            <Assembly>C:\MySSMSAddin\MySSMSAddin.dll</Assembly>
            <FullClassName>MySSMSAddin.Connect</FullClassName>
            <LoadBehavior>1</LoadBehavior>
            <CommandPreload>1</CommandPreload>
            <CommandLineSafe>0</CommandLineSafe>
        </Addin>
    </Extensibility>

but why SSMS sees this addin? 但为什么SSMS会看到这个插件? If I change the version to "*", then Addin is available in both versions of ssms. 如果我将版本更改为“*”,则在两个版本的ssms中都可以使用Addin。 Can anybody tell where wrong? 任何人都能说出错在哪里吗? Thanks! 谢谢!

Set the version to * but put the .addin file in: 将版本设置为*,但将.addin文件放入:

C:/ProgramData/Microsoft/SQL Server Management Studio/ 11.0 /Addins. C:/ ProgramData / Microsoft / SQL Server Management Studio / 11.0 / Addins。

If you want to load your addin into SSMS 2014 at some point then copy it to: 如果您想在某些时候将插件加载到SSMS 2014中,请将其复制到:

C:/ProgramData/Microsoft/SQL Server Management Studio/ 12.0 /Addins C:/ ProgramData / Microsoft / SQL Server Management Studio / 12.0 / Addins

Why don't you want the addin available in SSMS 2014? 您为什么不想在SSMS 2014中使用插件?

I have spent many frustrating days failing to get addins to load into SSMS. 我花了很多令人沮丧的日子,无法将插件加载到SSMS中。 You might want to consider using this framework I worked on for Red Gate that makes it simpler. 您可能需要考虑使用我为Red Gate工作的这个框架 ,使其更简单。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在SSMS Microsoft SQL Server Management Studio中重复滚动条显示已损坏 - Display corrupted with repeated scrollbar in SSMS Microsoft SQL Server Management Studio 是否有64位版本的SQL Server Management Studio(SSMS)2005? - Is there a 64 bit version of SQL Server Management Studio (SSMS) 2005? 32 位 SSMS 的最新版本是什么? (SQL Server 管理工作室) - What is the latest version of SSMS on 32 bits? (SQL Server Management Studio) 使用R连接到Microsoft SQL Server(视图位于Microsoft SQL Server Management Studio(SSMS)中的数据库中 - Connecting to Microsoft SQL Server with R (view is in a database in Microsoft SQL Server Management Studio (SSMS) 面向专业人士的 SSMS(SQL Server Management Studio) - SSMS(SQL Server Management Studio) for professionals Microsoft SQL Server Management Studio SSMS 2012中的SQL Azure数据库缺少数据库图表节点? - Missing Database Diagrams node for SQL Azure database in Microsoft SQL Server Management Studio SSMS 2012? Microsoft Sql Server Management Studio 18 (SSMS) v18.5 无法加载 - Microsoft Sql Server Management Studio 18 (SSMS) v18.5 won't load 如何在 SQL Server Management Studio (SSMS) 中评论 SQL 查询 - How to comment SQL queries in SQL Server Management Studio (SSMS) 如何在SSMS(Sql Server Management Studio)2017中启用查询存储? - How to enable query store in SSMS (Sql Server Management Studio) 2017? 如何安装SQL Server Management Studio 2012(SSMS)Express? - How to install SQL Server Management Studio 2012 (SSMS) Express?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM