Vs addin-Vs Automation Model

Source: Internet
Author: User

[Full article: http://msdn.microsoft.com/en-us/library/aa29034241728vs.71%29.aspx]

Vs Automation Model gives us the chance to interact with vs IDE's everything including Solution Explorer, toolbar, document, etc. by developing a vsmaros or vs addin, We can automate some tasks in. official words:

"The Visual Studio. net ide consists of several interrelated tool windows, such as the toolbox and the task list, and document windows such as Solution Explorer and the code editor. the Automation Model in Visual Studio. net contains the programmatic objects and interfaces in the IDE that allow you, as a developer, to programmatically control and automate these windows as well as other ide functionality such as solution and Project Build deployments, code editing, and debugging. using the Automation Model, you can create vsmacros, add-ins, and wizards to automate tasks, manipulate aspects of the IDE, and respond to ide events."

Figure 1.

 

Model name Description
Core Environment Model This comprises the majority of the Visual Studio. net Automation Model. it includes des objects to control ide elements (that is, tool and document windows, commands, menus, and so forth), events, and IDE functionality.

Nearly all of the Visual Studio. NET Automation Model is common within SS all Visual Studio. NET languages ages. Some additional objects are available for projects and for the Microsoft Visual C ++. Net code model.

Project Model Except des both common and language-specific objects for controlling solutions, projects, and project items. common solution/Project objects work with any Visual Studio. net project, whereas language-specific project objects are designed to work only with a specific Visual Studio. net Language.

The project model is common across SS all Visual Studio. NET extensions ages. Visual C ++. NET provides some additional extensions that are specific to that language.

Editor Model Except des objects to manipulate the text in the code editor such as inserting and deleting code, formatting and moving code around und, Setting bookmarks, and so forth.

The editor model is common across SS all Visual Studio. NET ages.

Code Model Includes objects to discover code and project items and manipulate code definitions. This model exposes the classes, interfaces, structs, and so forth, and members of those types.

The code model is common across SS all Visual Studio. NET extensions ages. Visual C ++. NET provides some additional extensions specific to that language.

Forms Model Except des objects to control Windows Forms and form properties, but not web forms.

The forms model is common across SS all Visual Studio. NET ages.

Debugger Model Except des objects to control the Visual Studio. NET debugger.

The debugger model is common within SS all Visual Studio. NET ages.

Build model Except des objects to control solution and Project Build operations and configurations. allows you to programmatically set debug options and create automatic or unattended builds.

The build model is common across SS all Visual Studio. NET ages.

Each of these sub-models contains objects that relate to a specific UI element or functionality of Visual Studio. net. for example, the core environment model-which contains groups of related objects and collections common to all Visual Studio. NET Programming versions-has objects that allow you to manipulate the toolbox, the task list, code displaying in the code editor, and so forth. the debugger model contains groups of related objects that allow you to control aspects of debugging, such as breakpoints, processes, threads, stackframes, and so forth.

Although the Visual Studio. net automation model is composed of sub-models, the entire model itself is programmatically seamless and there are no boundaries between the varous models, other than the fact that some models, such as the forms model, are contained in separate type libraries or assemblies.

 

Vs addin platform: http://allure.codeplex.com/

Visual Studio add-ins every developer shocould download now: http://msdn.microsoft.com/en-us/magazine/cc300778.aspx

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.