Walkthrough: Integrating Visual Studio Tools for Applications with ShapeApp

This walkthrough provides an overview of the process of modifying the ShapeAppCSharp samples with a basic integration of Visual Studio Tools for Applications, and links to detailed instructions for each task. For more information about the ShapeAppCSharp samples, see ShapeApp Samples (Visual Studio Tools for Applications).

This walkthrough illustrates the following tasks:

  • Creating proxies for ShapeApp.

  • Creating project templates for ShapeApp.

  • Modifying ShapeApp to discover and load add-ins.

  • Incorporating the integrated development environment (IDE) with ShapeApp.

Prerequisites

You need the following components to complete this walkthrough:

  • Visual Studio 2008.

  • Microsoft Visual Studio Tools for Applications 2.0.

  • The ShapeApp sample applications that are included with Visual Studio Tools for Applications.

Creating Proxies for ShapeApp

The first step to integrating Visual Studio Tools for Applications into ShapeApp is to create proxies for the ShapeApp object model. Proxies help communication by serving as an intermediary between the add-in and the host application object model.

For more information about proxies, see Creating Proxies.

To create proxies for ShapeApp

  1. Follow the instructions in Walkthrough: Creating a Proxy Assembly.

  2. After you complete the walkthrough, return to this topic and proceed to the next section.

Creating Project Templates for ShapeApp

You create project templates to enable add-in developers to create add-ins for your application. Project templates provide the basic files that are needed for a project type. They can include references to assemblies, and they can set default project properties and compiler options in the IDE.

For more information about project templates, see Creating Project Templates (Visual Studio Tools for Applications).

To create project templates for ShapeApp

  1. Follow the instructions in Walkthrough: Creating a Project Template Using the Project Template Wizard.

  2. After you complete the walkthrough, return to this topic and proceed to the next section.

Modifying ShapeApp to Discover and Load Add-Ins

You must implement several interfaces in the host application code so that it can discover and load add-ins.

For more information, see Discovering and Loading Add-Ins.

To modify ShapeApp to load add-ins

  1. Follow the instructions in Walkthrough: Modifying an Application to Load Add-Ins.

  2. After you complete the walkthrough, return to this topic and proceed to the next section.

Incorporating the IDE with ShapeApp

You can include the redistributable Visual Studio Tools for Applications IDE with the host application, and add code to start and stop the IDE and automatically configure a debugging session.

For more information about the IDE, see Incorporating the Integrated Development Environment.

To incorporate the IDE with ShapeApp

  1. Follow the instructions in Walkthrough: Incorporating the IDE for a Managed Object Model.

  2. After you complete the walkthrough, return to this topic.

Next Steps

The detailed walkthroughs in this overview show you how to modify ShapeApp with a basic integration of Visual Studio Tools for Applications. There are more advanced integration tasks that you can perform:

See Also

Tasks

How to: Build and Run the ShapeAppCSharp Sample

How to: Build and Run the ShapeAppBasicCSharp Sample

How to: Build and Run the ShapeAppMacroRecordingCSharp Sample

How to: Build and Run the ShapeAppDynamicProgrammingModelCSharp Sample

How to: Build and Run the ShapeAppClickOnceCSharp Sample

How to: Build and Run the ShapeAppBasicMFC Sample

Concepts

ShapeApp Samples (Visual Studio Tools for Applications)

Other Resources

Getting Started (Visual Studio Tools for Applications)