200 likes | 461 Views
Required Slide. SESSION CODE: DEV403. Building Extensions for the Microsoft Visual Studio Architecture Tools. Peter Provost Sr. Program Manager Microsoft Corporation. By the End of this Talk, you will understand. How extensibility works in our architecture models
E N D
Required Slide SESSION CODE: DEV403 Building Extensions for the Microsoft Visual Studio Architecture Tools Peter Provost Sr. Program Manager Microsoft Corporation
By the End of this Talk, you will understand • How extensibility works in our architecture models • How to create extensions to tailor the experience • What you can do (and can’t do) with extensibility
A little bit about MEF • MEF is a dynamic composition library created by Microsoft that ships with .NET 4.0 • Visual Studio includes MEF as a new extensibility mechanism • For our purposes, MEF lets us load and compose extensions into our designers and models
Customer Extensions Command Extensions Gesture Extensions Work Item Link Extensions Custom Toolbox Item Custom UML Profiles Model Validators Visual Studio 2010 Architecture Tools UML API Extensibility API Designers Models Visual Studio 2010
Extension Points • Context Menu Extensions • Add new menu items to the context menus of our designers • Gesture Extensions • Add new mouse gesture handlers for designers • Validation Extensions • Create custom domain validation methods for models • Work Item Link Extension • Perform actions when model elements are linked to TFS Work Items • Custom UML Profiles • Add new properties or identifiers to UML elements • Custom Toolbox Items • A customized element or set of element that can be easily reused across models
Creating a MEF ExtensionDemo summary • Creating an extension project • Using MEF Exports and Imports • Creating a command extension • Creating and displaying new model elements • Creating a Work Item Link Extension
Creating a UML ProfileDemo summary • How custom profiles work • Creating the profile.xml file • Creating new UML Stereotypes • Creating a VSIX package
Creating a custom Toolbox ItemDemo summary • How custom toolbox items work • Creating the template diagram • Installing the template for testing • Creating a VSIX Package
But I want more! • Simple things are simple, complex things are still possible • VS Packages for rich IDE integration • DSL and ModelBus for complex intra-model capabilities • Code generation using T4 • Roll your own, forward or backward • Use the Visualization and Modeling Feature Pack capabilities • Layer Diagram Extensibility • Included in the Visualization and Modeling Feature Pack • Gives all three MEF-based extension points for Layer Download the Visual Studio 2010 Visualization and Modeling Feature Pack NOW!
Related Blogs • Cameron Skinner • http://blogs.msdn.com/camerons • Steve Cook • http://blogs.msdn.com/stevecook • Peter Provost • http://www.peterprovost.org/blog/ • Jean-Marc Prieur • http://blogs.msdn.com/jmprieur • Mark Groves • http://blogs.msdn.com/mgroves/
Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Related Content
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Track Resources • Visual Studio – http://www.microsoft.com/visualstudio/en-us/ • Soma’s Blog – http://blogs.msdn.com/b/somasegar/ • MSDN Data Developer Center – http://msdn.com/data • ADO.NET Team Blog – http://blogs.msdn.com/adonet • WCF Data Services Team Blog – http://blogs.msdn.com/astoriateam • EF Design Blog – http://blogs.msdn.com/efdesign
Required Slide Resources Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet • http://microsoft.com/msdn
Required Slide Complete an evaluation on CommNet and enter to win!
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registrationJoin us in Atlanta next year
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.