VSPackages and the Managed Package Framework
You can reduce development time by creating a VSPackage with the managed package framework (MPF) classes instead of by using COM interop classes.
There are two ways to create a managed VSPackage:
Use the Visual Studio Package project template
For more information, see Walkthrough: Creating a Menu Command By Using the Visual Studio Package Template.
Build your VSPackage without the Visual Studio Package project template
For example, you can copy a sample VSPackage and change the GUIDs and the names. You can find samples in the VSX section of Code Gallery.