[英]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.