Summary

In this chapter, we explored a new .NET library, the Managed Execution Framework, and how it can be used to write extensions for the Visual Studio editor. We discussed the overall architecture of MEF itself, including its extension discovery mechanisms and the core concepts of parts and imports/exports.

We also covered all of the specific Visual Studio 2010 editor extension points, and outlined the value that the Visual Studio SDK provides with its pre-stocked set of extension templates that target those editor extension points.

Finally, we walked through the creation of an editor extension that exploits the editor’s adornment layer to display a running total of three different code metrics, all through the use of a WPF-based user control. ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.