Earlier this week, Yann Duran mentioned the Extensibility Toolkit which was featured in Beth Massi’s recent video.
For those who haven’t watched this, the following post contains some screenshots from the video illustrating how this works. (I would still recommend watching the video however. The toolkit section appears at 55min).
The toolkit goes a long way to simplifying the creation of extensions. The current method of creating extensions using the “Cookbook” is fairly time consuming. In particular, the errors that could be encountered when renaming everything from “BlankExtension” can be very painful.
With the Extension Library installed, opening Visual Studio and selecting “New Project” shows the following Extension templates.
Creating a new project based upon the above template creates a solution with the following projects.
The above projects correspond to the projects in a regular LightSwitch project (for example Client, Common, Server, etc) You will notice 2 additional project which are the “Vsix” and “Lspkg” projects. The output from the Vsix project will be used to install the completed extension into Visual Studio.
LSPKG stands for “LightSwitch Packaging Project”. Right clicking on this and choosing “New Item” brings up the following screen.
From here, templates relating to the 6 LightSwitch Extensibility points are available.
- Business Types
- Custom Controls
- Data Source
- Screen Template
Selecting the “Theme” option will create a theme which includes all the display elements. You can simply modify the fonts and colours to suit your style.
Although this toolkit has not yet been released, it should hopefully simplify the creation of extensions to a very large degree.