LightSwitch extensions made easy: Install extensions using Nuget

A quick guide on how to install LightSwitch extensions using Nuget and the ExtensionsMadeEasy extension…

 

Step 1: Installing the required VSIX extensions…

Start up Visual Studio, and open the Extension Manager from the Tools menu.

The first required extension, obviously, is the Nuget Package Manager.  You can easily find it by searching the online gallery for “nuget”.  This extension might ( should ) already be installed on your system.

If you have no idea what Nuget is: my condolences  you can read this introduction post by Phill Haack, browse the documentation on the Nuget home page, or find out when a local user group is doing a session on it.  (Yes, that was some shameless advertising right there.  Subtle?)

 

Step 2: the application.

At this point, we want to create some kind of test application.

Create a new LightSwitch application and add some data and screens, or simply open an existing one.

Next step, is to install and activate the ExtensionsMadeEasy extension.

 

Time to build our application and run it…

Notice that nothing appears to be different from the default theme.  That is because the EasyTheme we have selected, has no implementation.  Time to add…

Step 3: Adding a little bit of magic Nuget Dust.

Select your LightSwitch project in the solution explorer, and switch to File View (the default is Logical View).  Right-click on the (Silverlight) Client project inside our (LightSwitch) project, and select Manage Nuget Packages…

At this point, a very similar screen as in step one appears.  The difference: this one is to install Nuget packages from the main Nuget feed, the previous one is to install VSIX extensions from the Microsoft Gallery.

Search the online Nuget feed for “LightSwitch” packages.  With any luck, by the time you search, my avatar will be a bit less lonely there…

Install the LightSwitchMetroTheme Nuget package that you find there.

 

Hit F5…

And try to spot the difference.


One BIG DISCLAIMER: it should be fairly obvious that I did not create the Theme extension that was used.  It’s the LightSwitch Metro Theme Extension, and I’m quite sure lot’s of credit towards their hard work is in place here…  (AKA: All rights reserved – Microsoft)

Advertisements

2 thoughts on “LightSwitch extensions made easy: Install extensions using Nuget

  1. Pingback: Windows Azure and Cloud Computing Posts for 10/11/2011+ - Windows Azure Blog

  2. Pingback: HTML5 is in town! Long live LightSwitch! « Jan Van der Haegen's blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s