How to: Build and Run the ShapeAppCSharp Sample

The ShapeAppCSharp sample provides a sample host application that is not integrated with Visual Studio Tools for Applications.

Perform the following steps to build and run ShapeAppCSharp:

  1. Extract ShapeAppCSharp.

  2. Open the solution in Visual Studio and run it.

For more information about the ShapeAppCSharp sample, see ShapeApp Samples (Visual Studio Tools for Applications).

To extract ShapeAppCSharp

  1. Create a folder named ShapeAppSamples at the root of the Windows system drive (%SystemDrive%), and then create a subfolder named ShapeAppCSharp. For example, if your system drive is C, the directory would be C:\ShapeAppSamples\ShapeAppCSharp.

    Note

    Although you can extract ShapeAppCSharp to any folder, the following procedures and the walkthroughs in the Visual Studio Tools for Applications documentation assume that you extract ShapeAppCSharp to the drive:\ShapeAppSamples\ShapeAppCSharp folder.

  2. Open the Visual Studio Tools for Applications samples folder.

    By default, the samples folder is located at %ProgramFiles%\Visual Studio Tools For Applications 2.0 SDK\build number\Visual Studio Tools For Applications\Samples on 32-bit versions of Windows, or at %ProgramFiles(x86)%\Visual Studio Tools For Applications 2.0 SDK\build number\Visual Studio Tools For Applications\Samples on 64-bit versions of Windows.

  3. Right-click the ShapeAppCSharp.zip file, and then click Extract All.

    Note

    This step assumes that your system is set to open .zip files using Compressed (zipped) Folders. If your system is set to open .zip files with another program, follow the instructions of that program to extract the contents of ShapeAppCSharp.zip.

  4. Follow the instructions in the Extract Compressed (Zipped) Folders wizard to extract the contents of ShapeAppCSharp.zip to the drive:\ShapeAppSamples\ShapeAppCSharp folder.

To open the solution in Visual Studio and run it

  1. Start Visual Studio 2008.

  2. On the File menu, point to Open, and then click Project/Solution.

  3. In the Open Project dialog box, navigate to the drive:\ShapeAppSamples\ShapeAppCSharp folder.

  4. Select the ShapeAppCSharp.sln file, and click Open.

  5. Press F5.

    Verify that ShapeAppCSharp builds and runs without errors.

  6. Exit ShapeAppCSharp.

See Also

Tasks

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

Walkthrough: Integrating Visual Studio Tools for Applications with ShapeApp

Concepts

ShapeApp Samples (Visual Studio Tools for Applications)