How to Upgrade LightSwitch Applications from NetAdvantage Vol.11.1 to Vol.11.2

 

NetAdvantage for LightSwitch  Vol.11.2 is coming next days. This is an innovative product with a new Infragistics Grid control  for LightSwitch and improvements for  existing controls.

This blog is about how to upgrade existing Visual Studio LightSwitch projects with NetAdvantage Vol.11.1 extensions to new 11.2 release components.

Procedure for upgrade

To be possible to upgrade your LightSwitch project you should follow these steps:

1. Install correctly NetAdvantage for LightSwitch 11.2

  • Uninstall NetAdvantage for LightSwitch 11.1
  • Install NetAdvantage for LightSwitch 11.2

2. Upgrade to release 11.2 the  existing LightSwitch projects with NetAdvantage for LightSwitch 11.1

  • Create a new “dummy” LighSwitch project where to include new Infragistics LightSwitch  Extensions from  11.2 Release.
  • Upgrade ExtensionEsseblies secition in all Config.xml files in “ClienGenerated” project from existing LightSwitch solution with the same section from the new “dummy” project.
  • Delete all existing “obj” folders in “Client”, “Common” and “Server” project from existing LightSwitch solution

3. Run the updated LightSwitch application.

Install correctly NetAdvantage for LightSwitch 11.2

More information how to do that you could find here:

Upgrade to release 11.2 the existing LightSwitch projects with NetAdvantage for LightSwitch 11.1

Try to run the existing LightSwitch applications, created with NetAdvantage for LightSwitch 11.1.

Open the existing project

Ls_11.1_To_11.2_Pic01

Ensure that you still have included Infragistics LightSwitch Extensions.

Ls_11.1_To_11.2_Pic02

Run the excising project. You will receive this error message.

Ls_11.1_To_11.2_Pic03

 

  • Create a new “dummy” LighSwitch project where to include new Infragistics LightSwitch Extensions from 11.2 Release.

Create a new LightSwitch project.

Ls_11.1_To_11.2_Pic06

Add to this project Infragistics LightSwitch Extensions (Visual Studio LightSwitch will use the latest (Release 11.2) extensions).

Ls_11.1_To_11.2_Pic07

Open the LightSwitch solution folder with Windows Explorer and open “ClientGenerated” project

Ls_11.1_To_11.2_Pic04a

  • Upgrade ExtensionEsseblies secition in all Config.xml files in “ClienGenerated” project from existing LightSwitch solution with the same section from the new “dummy” project.

Open Config.xml files in “ClientGenerated” and “ClientGenerated\Bin\Debug” folders.

Ls_11.1_To_11.2_Pic04

Ls_11.1_To_11.2_Pic05

Change the content of  “ExtensionAssemblies” section in these files with the content of the same section from Config.xml file from a “dummy” LightSwitch poject.

“ExtensionAssemblies” section with 11.1 Release assemblies

   1: <ExtensionAssemblies>

   2:   <ExtensionAssembly>Microsoft.LightSwitch.Extensions.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

   3:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Client.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   4:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   5:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   6:   <ExtensionAssembly>InfragisticsSL4.Controls.Charts.XamGauge.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   7:   <ExtensionAssembly>InfragisticsSL4.Controls.Editors.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   8:   <ExtensionAssembly>InfragisticsSL4.Controls.Charts.XamDataChart.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   9:   <ExtensionAssembly>InfragisticsSL4.Controls.Maps.XamMap.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  10:   <ExtensionAssembly>InfragisticsSL4.Controls.Editors.XamSlider.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  11:   <ExtensionAssembly>InfragisticsSL4.Controls.Menus.XamMenu.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  12:   <ExtensionAssembly>InfragisticsSL4.Controls.Menus.XamOutlookBar.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  13:   <ExtensionAssembly>InfragisticsSL4.Controls.Lists.XamTileView.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  14:   <ExtensionAssembly>InfragisticsSL4.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  15:   <ExtensionAssembly>InfragisticsSL4.DataVisualization.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  16:   <ExtensionAssembly>Microsoft.LightSwitch.SdkProxy, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

  17:   <ExtensionAssembly>InfragisticsSL4.Controls.Interactions.XamDialogWindow.v11.1, Version=11.1.20111.1000, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  18:    <ExtensionAssembly>System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

  19:   <ExtensionAssembly>System.ComponentModel.Composition.Initialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

  20: <ExtensionAssembly>Microsoft.LightSwitch.Extensions.Design.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</ExtensionAssembly></ExtensionAssemblies>

 

“ExtensionAssemblies” section with new  11.2 Release assemblies

   1: <ExtensionAssemblies>

   2:   <ExtensionAssembly>Microsoft.LightSwitch.Extensions.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

   3:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Client.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   4:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   5:   <ExtensionAssembly>Infragistics.LightSwitch.Extensions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   6:   <ExtensionAssembly>InfragisticsSL4.Controls.Charts.XamDataChart.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   7:   <ExtensionAssembly>InfragisticsSL4.Controls.Charts.XamGauge.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   8:   <ExtensionAssembly>InfragisticsSL4.Controls.Grids.XamGrid.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

   9:   <ExtensionAssembly>InfragisticsSL4.Controls.Editors.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  10:   <ExtensionAssembly>InfragisticsSL4.Controls.Maps.XamMap.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  11:   <ExtensionAssembly>InfragisticsSL4.Controls.Editors.XamSlider.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  12:   <ExtensionAssembly>InfragisticsSL4.Controls.Menus.XamMenu.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  13:   <ExtensionAssembly>InfragisticsSL4.Controls.Menus.XamOutlookBar.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  14:   <ExtensionAssembly>InfragisticsSL4.Controls.Lists.XamTileView.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  15:   <ExtensionAssembly>InfragisticsSL4.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  16:   <ExtensionAssembly>InfragisticsSL4.DataVisualization.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  17:   <ExtensionAssembly>Microsoft.LightSwitch.SdkProxy, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

  18:   <ExtensionAssembly>InfragisticsSL4.Controls.Interactions.XamDialogWindow.v11.2, Version=11.2.20112.1008, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB</ExtensionAssembly>

  19:   <ExtensionAssembly>System.ComponentModel.Composition.Initialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35</ExtensionAssembly>

  20: </ExtensionAssemblies>

 

  • Delete all existing “obj” folders in “Client”, “Common” and “Server” project from existing LightSwitch solution

Delete existing folders, shown below.

Ls_11.1_To_11.2_Pic08

Ls_11.1_To_11.2_Pic08a

Ls_11.1_To_11.2_Pic08b

Run the updated LightSwitch application.

Rebuild and run the updated LightSwitch application.
Enjoy the fully working updated application .

Ls_11.1_To_11.2_Pic09

Ls_11.1_To_11.2_Pic09a

The exciting new NetAdvantage for LightSwitch Vol.11.2 will let you have fun when create LightSwitch applications. You can try it a few days. Follow news from Infragistics in http://infragistics.com/ and twitter: @infragistics for more information about new Infragistics products.

About Mihail Mateev

am a Microsoft Regional Director currently living in Sofia, Bulgaria. My interests range from technology to entrepreneurship. I am also interested in programming, web development, and education. Technical Consultant, Community enthusiast, PASS Regional Mentor for Central Eastern Europe, chapter lead, Microsoft MVP – Microsoft Azure. Organizer of SQLSaturday, Azure Bootcamp, IoT and JavaScript conferences. My experience is in various areas related to Microsoft technologies, including Windows Platform, ASP.Net MVC, MS SQL Server and Microsoft Azure. I have a PhD in cloud computing and am a university lecturer on Smart Homes and Smart Energy IoT Solutions
This entry was posted in Uncategorized. Bookmark the permalink.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s