Share via


How to: Create a LightSwitch Extension Project

To add new capabilities to Visual Studio LightSwitch, create one of these six types of extensions: business types, controls, data sources, screen templates, shells, or themes.

Prerequisites

  • Visual Studio Professional 2012

  • Visual Studio 2012 SDK

  • LightSwitch Extensibility Toolkit for Microsoft Visual Studio 2012

The steps in "To create an extension project" are the same for all extension types.

To create an extension project

  1. On the menu bar in Visual Studio, choose File, New Project.

  2. In the New Project dialog box, select the LightSwitch node, and then select LightSwitch Extension Library (Visual Basic) or LightSwitch Extension Library (C#).

  3. In the Name field, enter a name for your extension library. This name will appear on the Extensions tab of the LightSwitch Application Designer.

  4. Choose the OK button to create a solution that contains the seven projects that are required for the extension.

To create an extension type

  1. In Solution Explorer, select the LibraryName.Lspkg file, where LibraryName is the name of your extension project.

  2. On the menu bar, choose Project, Add New Item.

  3. In the Add New Item dialog box, select the extension type that you want to create.

  4. In the Name field, enter a name for your extension. This name will appear in the LightSwitch IDE.

  5. Choose the OK button. Depending on the extension type that you chose, additional files or projects may be added to the solution.

    Now your extension is ready to develop. The See Also list contains links to the documentation for the various extension types.

See Also

Tasks

How to: Debug or Test a LightSwitch Extension

How to: Set VSIX Package Properties

Walkthrough: Creating a Business Type Extension

How to: Create a LightSwitch Control

Walkthrough: Creating a Data Source Extension

Walkthrough: Creating a Theme Extension

Walkthrough: Creating a Shell Extension

Concepts

LightSwitch Extensibility Toolkit for Visual Studio 2012

Creating a LightSwitch Screen Template