Getting visual studio to load extension when opening RRS feed

  • Question

  • Hi

    I am developing an extension for SSMS using VSIX.

    I need the extension to run a specific code when the SSMS opens.

    From what I can see using debug the package constructor (which is the first code that runs from the extension) runs when selecting the first action in the menu that was created in the extension.

    Is there a way to get notified when SSMS (or visual studio) starts?

    Thank you


    Monday, July 24, 2017 6:36 AM

All replies

  • You need to add ProvideAutoLoad attribute(s). See https://social.msdn.microsoft.com/Forums/SqlServer/en-US/b7b1be4c-1ff1-4d0b-bab4-5ce405b06c62/converting-addin-to-extension-package?forum=vsx

    Sergey Vlasov | Vlasov Studio | Visual Studio extensions and tools

    Tuesday, July 25, 2017 3:17 AM
  • I added the ProvideAutoLoad but I can't find a list of GUIDs that are relevant to SSMS
    Tuesday, July 25, 2017 8:13 AM
  • Hi ItamarE,

    Please check the following thread:

    If you want your extension to work with sql related features then you are going to need to add references to some SSMS dll files. The first one to add is SqlWorkbench.Interfaces.dll located in the ManagementStudio folder. This contains a lot of interfaces that you can work with. The next one you may want to add is SqlPackageBase.dll. This contains some GUIDs that will be useful for the package ProvideAutoLoad attribute.


    Best regards,

    Cole Wu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, July 27, 2017 6:26 AM