Category Archives: BLDWIN

Second Look at LightSwitch in VS2013 Preview

More Impressions OF LightSwitch

And Visual Studio 2013 Preview

This week has been very busy for most people involved with Microsoft technologies as the BUILD 2013 ( #BLDWIN ) and TechEd 2013 draw to a close.

Our teams have been busy evaluating and testing. As most activities have been successful and gratifyingly trouble free, some more feedback is available for LightSwitch V4 Preview and Visual Studio Extensions.

Xpert360 Lightning Series in VS2013 Preview

Xpert360 Lightning Series in VS2013 Preview

Above is a screen of a preview of the AIDE power tool running in Visual Studio 2013, an upgraded LightSwitch Rich-Client (V2 > V4) application, our LightSwitch Theme Generator tool, and four of our LightSwitch extensions migrated to VS2013.

For extensions the targeted version range in the manifest needed to include the internal version number ‘12.0’. So now the range is ‘[11.0, 12.0]’ in the manifests. The Dynamics adapter is slightly different as it is built in VS2010 so targets ‘VSLS’ and ‘10.0’ as well.

The LightSwitch theme packs worked straight away but the other extensions required some additional changes and testing.

Xpert360 Office Theme Pack Install for LightSwitch

Xpert360 Office Theme Pack Install for LightSwitch

The ThemeGen application is what we use internally to edit and validate LightSwitch themes for Rich-Client/Desktop/Silverlight clients. When dealing with the 600+ colors in the Cosmopolitan styles it is a big time saver.

In an unusual take on ‘eat-your-own-dog-food’ style, the upgraded ThemeGen is sporting themes from our VS2013 preview of Office Theme Pack, that was created using its self. For anyone new to LightSwitch, yes these are real screens of a real LightSwitch app delivered in true RAD-fashion.

VS2013 LightSwitch in Dark Blue Theme

VS2013 LightSwitch app in VS2012 Color Theme

VS2013 LightSwitch app in Dark Blue theme

VS2013 LightSwitch app in Dark Blue theme

The theme pack contains a total of eight themes.

Office Themes in VS2013 LightSwitch

Office Themes in VS2013 LightSwitch

Our remaining themes, theme packs, extensions and samples are in the queue to be upgraded and should be available over the coming weeks.

Conclusions

We have successfully upgraded some LightSwitch applications (Rich-Client and Mobile-Client) from V2 to V4 and V3 to V4.

Apart from the issues already noted by bloggers and the LightSwitch team, the process has been relatively smooth to-date.

We are running VS2012 Update 3 and VS2013 Preview side-by-side on Windows 7 and Windows 8 OS platforms.

We are in the process of upgrading Visual Studio extensions to VS2013 Preview and this process is also going well.

Good job all around!

Advertisements

First look at LightSwitch V4 in VS2013 Preview

VisualStudio 2013 ( #VS2013 ) Preview

… was released yesterday coinciding with the BUILD 2013 conference ( #BLDWIN )  in San Francisco.

There is a LightSwitch session by Joe Binder scheduled for today:

Building Modern, HTML5-based Business Applications on Windows Azure and Office 365 with Visual Studio LightSwitch

Today should also see the first blog articles and materials from the LightSwitch Team based on this new release.

So, we have installed and tried out LightSwitch V4 and our initial thoughts are here. This version is focused on improving team development and the LightSwitch IDE experience. We have yet to try out deployment and there should be some surprises unveiled later.

VS2013 Preview Install including LightSwitch V4

VS2013 Preview Install including LightSwitch V4

The VS2013 Preview can be installed side-by-side with VS2012 Update 3 (also released yesterday). You will be required to reboot after the installation. We installed it on an old Windows 7 Ultimate machine.

You can see the LightSwitch V4.0 contents on disk afterwards.

LightSwitch V4.0 on disk

LightSwitch V4.0 on disk

This “SQL Database Project” will require some more information later. Anyone?

[Update: @janvanderhaegen ] This is for providing ‘seed data’ to populate your database. Thanks Jan! We look forward to experimenting with this.

LightSwitch and SQL Database Project

LightSwitch and SQL Database Project

So we will not get too excited and read too much into this until we hear about it and try it out for real!

The most obvious difference in the IDE is the view of your project in Solution Explorer. The much maligned “Logical/File View” option is gone, there is only one view, it will feel more familiar now to non-LightSwitch developers.

LightSwitch V4 in Solution Explorer

LightSwitch V4 in Solution Explorer

The LSML files containing the application metadata have been split into separate LSML files, one per screen and entity, that contain partial fragments. This will be a big win for team development and source control management using TFS.

The screens and entities appear in the explorer as ‘lsml’ files with code-behind files appearing as child items, much like Xaml/C#/VB items appear.

The available menus for items in solution explorer are mostly the same as before.

Solution Explorer Menus

Solution Explorer Menus

You can still only officially have one of each type of client in a LightSwitch V4 project: one RichClient/SilverLight, one MobileWeb/HTML.

Screen Context Menu

Screen Context Menu

The screen context menu does not have a ‘Copy’ option.

Luckily we have Xpert360 Lightning AIDE for LightSwitch approaching release. AIDE provides a much anticipated ‘Clone/Copy’ screen feature, amongst other things, for LightSwitch V2 and V3 projects. This LightSwitch Power Toolkit will be upgraded to provide the same for V4 projects in VS2013 later this year.

There is a video of cloning screens in AIDE here.

Each screen and entity loads into it’s own designer window. Overall this is great, giving you the possibility of viewing project items side-by-side like below:

LightSwitch screen designer windows

LightSwitch screen designer windows

Sometimes this can be disconcerting in the entity designer windows if you are used to drilling-down through entities and relationships as you quickly end up with a multitude of windows open. It works perfectly well for screen but we would prefer it different for the entity diagram. Time will tell if this feeling persists.

There is still an odd anomaly with the HTML client property view for an entity.

HTML Client Default Screen?

HTML Client Default Screen?

The property window for the HTML client lists the RichClient/Silverlight screens as default screen options. Luckily it does not break the project and appears unused at the moment.

If you flick through the menus you will notice potential other commands and standard Visual Studio 2013 operations. They are tempting but please don’t try out anything on you critical solutions and projects, and make sure you have a backup!

You will:

  • Add new item
  • Add existing item
  • Create subfolders
  • Sometimes drag-n-drop screens and entities

All these operations will likely result in this:

Clone screen good the rest bad!

Clone screen good the rest bad!

So you have been warned, but it is a preview after all. Happy testing.

Conclusions

Clearly for team developments this version looks like it has the potential to be a big win. Most effort for V4 has been concentrated in the IDE.

Will multiple clients and clients that target Windows 8.1 be on the radar. We can hope, but at this speed of delivery we are not betting against LightSwitch V5 appearing before the end of 2013.