Migrating Visual Studio VSPackage to SSMS 2012 or 2014

I recently discovered a visual studio extension that allows you to specify a watermark for a code window. This extension can be found here on github.

https://github.com/nategreenwood/VSEditorBackgroundChangerExtension

As part of a small project, I'm trying to get it working in SQL Server Management Studio. Although Microsoft does not officially support the SSMS extension, they also do not prevent it. These are their words, not mine.

Looking into the \ application extension subfolder for SSMS for SQL Server 2014, it is obvious that Microsoft is using VSPackage to include its own extensions in the version of the isolated Visual Studio shell on which SSMS is built. However, manifests look like version 1.

They appear in the following location in my own box: C: \ Program Files (x86) \ Microsoft SQL Server \ 120 \ Tools \ Binn \ ManagementStudio \ Extensions \ Application

Seek help checking if this extension can be changed to work with SSMS. I changed the package manifest in various ways - including rewriting the package as a package and the manifest in the style of one version. I see a package registered in the pkgdef guid that VSIX generates. It says that it was installed. Error messages are not displayed, but the image is not displayed.

Are you using an isolated shell, and more specifically, the code window used by SSMS to design and implement TSQL support jewelry, such as the ones used by this package? Does SSMS support version 2 and VSPackages?

Any advice on how to modify this package to make it work is welcome.

My own attempts are described below: http://sqljudo.wordpress.com/31-days-of-ssms/ssms-day-30-vspackage-and-ssms/

+6
source share
1 answer

Looks like there was an official Connect answer to this question: https://connect.microsoft.com/SQLServer/Feedback/Details/2602390

In 2012 and 2014, the old Addin mechanism should be used, and since 2016 (general release), the new VSPackage mechanism should be used (ref: http://blogs.sqlsentry.com/aaronbertrand/plan-explorer-add-in -ssms-2016 / )

+2
source

Source: https://habr.com/ru/post/974629/


All Articles