Chapter 53Managed Extensibility Framework (MEF) Code Downloads for this Chapter

The code downloads for this chapter are found at on the Download Code tab. The code and any related support files are located in their own folder for this chapter.

Creating loosely coupled applications that can be extended after deployment can be difficult. You have many design decisions to make, including identifying and loading extensions that have been deployed, and making application services available to loaded extensions. The Managed Extensibility Framework (MEF) is an open source library created by Microsoft designed to reduce the complexity of creating extensible applications. It enables you to expose reusable parts of your application to plug-ins or extensions that are discovered and loaded at run time and design your application in a loosely coupled fashion.

Visual Studio 2015 uses the MEF library to provide extension points for both the Visual Studio IDE shell and the main editor control. It is expected that in the future, more areas will be exposed for this kind of extension.

This chapter is split into three sections. The first section is an introduction to how MEF ...

Get Professional Visual Studio 2015 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.