Introducing OpenSilver 2.2 and the LightSwitch Compatibility Pack
April 30, 2024
Dear .NET community,
Today at Userware, we are excited to introduce OpenSilver 2.2. This update brings the “LightSwitch Compatibility Pack“, enabling legacy Microsoft’s Visual Studio LightSwitch applications to run on modern browsers.
For the first time, businesses can port these applications without rewriting them. The new release breathes new life into LightSwitch applications while maintaining complete fidelity to their original look and functionality.
Microsoft LightSwitch Was a ‘No Code’ Tool With Unique C#/VB/XAML Extensibility
Visual Studio LightSwitch was a Microsoft development tool designed for rapid development of line-of-business software. It was known for its simplicity and customization capabilities. It enabled rapid, ‘no-code’ development through a user-friendly drag-and-drop interface for designing entities, queries, and UIs.
Advanced users could go further by adding custom C# and XAML code (or VB.NET and XAML) to create unique controls and extend application functionalities.
Unlike many SaaS solutions, LightSwitch allowed full control over application deployment, offering a blend of ease and customization for business software development.
The Urgent Need for Migration
With the discontinuation of the Silverlight plugin, which powered LightSwitch apps, many enterprises faced the dilemma of either overhauling their existing applications or risking operational failure.
It’s crucial for businesses to understand the risks associated with continuing to use Silverlight-based applications. Although LightSwitch apps can still operate in IE Mode on some versions of Windows, the discontinued support for Silverlight poses significant security risks and vulnerabilities. Furthermore, there is always the possibility that future Windows updates might suddenly end Silverlight support, leaving applications inoperable.
Introducing the “LightSwitch Compatibility Pack”
Recognizing this challenge, we developed a solution that allows these applications to transition smoothly to modern web technologies.
OpenSilver 2.2 enables this by allowing developers to compile their existing LightSwitch applications to modern technologies, such as HTML5 and WebAssembly. The resulting applications run flawlessly on all modern browsers, including Edge, Chrome, Firefox, Safari, and Opera—without any plugins.
Migrating with the LightSwitch Compatibility Pack offers numerous advantages over a full rewrite:
- Cost Efficiency: Migration is significantly less expensive than rewriting applications from scratch.
- Speed: Transition timelines are drastically reduced.
- Risk-Free: We offer a guaranteed fixed price for end-to-end migrations, ensuring that there are no financial surprises.
- Fidelity: The migrated applications are indistinguishable from the original, both in terms of functionality and GUI.
- No User Retraining Needed: Since the application remains the same, there is no need for end-user training.
How the Migration Works
Migrating a LightSwitch application is straightforward:
- Developers start by copying the generated files from their existing LightSwitch project in the legacy version of Visual Studio.
- These files are then imported into a new OpenSilver (Download) project in the latest version of Visual Studio. OpenSilver supports both C# and VB.NET.
- By referencing the “LightSwitch Compatibility Pack” NuGet package (Request Trial) in their project, developers can then compile their applications frontend into static files.
- These static files are ready to be deployed across any web hosting environment, ensuring wide compatibility and accessibility.
See the Difference: Before and After Migration
To illustrate the effectiveness of OpenSilver 2.2, please find below live links of a sample LightSwitch application, both before and after migration. These demos clearly show that the applications are identical post-migration, confirming that functionality and user interface are preserved without compromises.
LIVE DEMO:
- Original LightSwitch application (requires the Silverlight plugin)
- Migrated LightSwitch application (no plugin required)
The source code for this demo can be found on GitHub. More OpenSilver live demos can be found in the Gallery.
Future Visual Studio Integration
Currently, the LightSwitch Compatibility Pack for OpenSilver 2.2 supports the runtime environment for LightSwitch applications.
While the Visual Studio editor for drag-and-drop app creation has not yet been ported to OpenSilver, developers can continue using the LightSwitch editor in the legacy Visual Studio. We have plans to integrate this functionality in our roadmap, aiming to provide a seamless development experience across all platforms.
Looking Ahead: What’s Next for OpenSilver?
As we continue to evolve, our roadmap is filled with innovations set to transform how developers build and deploy applications. Upcoming features include:
- Drag-and-drop XAML UI Designer: Streamlining the UI development process for a more intuitive design experience.
- .NET MAUI Integration: Enabling the creation of applications that can run across iOS, Android, Mac, and Windows platforms.
- XAML Hot Reload, CLI, VS Code, macOS, and Rider Support: Enhancing productivity and flexibility in development environments.
These developments are just the beginning, with much more planned for the future of OpenSilver!
Embark on the Journey
We’re not only revitalizing legacy applications but also paving the way for OpenSilver to become the premier framework for .NET web app development. Our focus extends to equipping developers with powerful tools to create cutting-edge, responsive web applications efficiently.
Join us in redefining the possibilities of web development. Leverage OpenSilver for both updating older software and crafting new, dynamic web solutions. Let’s harness the full potential of .NET together in the modern web landscape.
Previous Releases: OpenSilver 2.0 and 2.1
If you missed the announcements for our previous releases (versions 2.0 and 2.1), you can catch up through the links provided below:
Previous Releases: OpenSilver 2.0 and 2.1
If you missed the announcements for our previous releases (versions 2.0 and 2.1), you can catch up through the links provided below:
Change Log of OpenSilver 2.2
Here is what's new since version 2.1:
- LightSwitch Compatibility Pack (Request Trial)
- Significant performance improvement, especially for published and AOT-compiled applications
- Improved XAML Live Preview
- Implemented advanced text measurement capabilities via TextBlock's ActualWidth and ActualHeight
- Improved scrolling on mobile devices
- Implemented the IsolatedStorageSettings class
- Implemented UIElement.OpacityMask property
- Implemented UIElement.TextInputStart routed event
- Implemented CaretBrush property for TextBox and PasswordBox
- Implemented "Indeterminate" animations of ProgressBar (useful for visual feedback with BusyIndicator for instance)
- Implemented UseShadowDOM property on HtmlPresenter to add option to isolate its content from the DOM
- Bug fixes
- The full changelog is available on GitHub
Get Started Today!
Join us on this exciting journey. Download the OpenSilver 2.2 SDK today and start shaping the future of web development. Your innovative creations inspire us, and we can't wait to see the amazing applications you'll build with OpenSilver.
Share the news:
Today, we've achieved the unthinkable 😄: Microsoft LightSwitch support is here!
— OpenSilver (Silverlight replacement) (@OpenSilverTeam) April 30, 2024
For the first time ever, Visual Studio LightSwitch apps can run seamlessly on modern browsers—no rewrites, just a bit of magic 🧙♂️
Discover the wonders of OpenSilver 2.2 & help us tell the world… pic.twitter.com/OVamaodkUP
Press Kit
For media inquiries, please send an email to: Vasil Buraliev Media Relations at Userware vasil.buraliev@userware.
onmicrosoft.com
Press Release:
- – MS Word format (.docx) : Press Release – OpenSilver v2.2 Release.DOCX
- – PDF format : Press Release – OpenSilver v2.2 Release.PDF