How to create extension for SQL Server Management Studio 17 in C# in VS2017?

后端 未结 2 1904
我在风中等你
我在风中等你 2021-02-02 04:17

I followed simple Hello World sample from Create your first extension: Hello World example from the Microsoft Docs to build an extension for SSMS 2017

  1. Created V

相关标签:
2条回答
  • 2021-02-02 04:57

    You got the first bit right, but there are a couple more steps to do before you’re set:

    1. You need to tell Visual studio to copy the extension (on build) to the SSMS extensions folder so that SSMS can load it while starting up.
    2. You need to tell SSMS to skip its internal extension validation because it won’t load any extensions that are not white listed by the SSMS team.

    I explained this process in detail in an article I created at CodeProject. You can find the full tutorial at the following link: https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS

    0 讨论(0)
  • 2021-02-02 05:06

    First, you need to declare SSMS support in your source.extension.vsixmanifest file:

      <Installation>
        <InstallationTarget Id="ssms" Version="[14.0, 14.0]" />
      </Installation>
    

    Then I don't think VS can automatically install your extension for SSMS. So, run the .vsix file manually.

    0 讨论(0)
提交回复
热议问题