How to: Create a LightSwitch Extension Project

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


  • Visual Studio 2013 Professional

  • Visual Studio 2013 SDK

  • LightSwitch Extensibility Toolkit for Visual Studio 2013

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, expand the Visual Basic or Visual C# node, expand the LightSwitch node, select the Extensibility node, and then select the LightSwitch Extension Library template.

  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.