Visual Studio SDK and Managed Code

Managed code is code that is written in any language that targets the common language runtime (CLR), such as Visual Basic, Visual C#, or Visual C++. Regardless of the language that it is written in, all managed code is compiled into Microsoft Intermediate Language (MSIL) instead of native code.

Environment Support for Managed VSPackages

To support creating a VSPackage or project with a managed language such as Visual C#, the Visual Studio SDK provides the following:

  • The Visual Studio interop assemblies, which enable VSPackages written in managed code to interoperate with the unmanaged (COM) Visual Studio integrated development environment (IDE). For more information, see Visual Studio Interop Assemblies.

  • A set of Managed Package Framework (MPF) classes that provides a higher-level abstraction for working with the Visual Studio IDE. These classes encapsulate some of the most frequently used interfaces and types in the Visual Studio interop assemblies. They greatly reduce the amount of work that you must do to provide the basic functionality of a VSPackage or project. For more information, see Managed Package Framework Classes.

  • A set of basic VSPackage samples written in managed code. The managed samples build on an example of a simple, fully functional VSPackage to demonstrate a basic editor, a tool window, an object extender, and other components. For more information, see Visual Studio Extensibility Samples.

See Also

Concepts

Visual Studio Interop Assemblies

Managed Package Framework Classes

Other Resources

Managed VSPackages