Jump to content

OpenSilver Framework: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Remove prod. Take to AFD. Software is the defacto open-source successor for Silverlight
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:

{{Infobox software
{{Infobox software
| name = OpenSilver
| name = OpenSilver
Line 22: Line 21:
'''OpenSilver''' is an open-source framework designed to facilitate the development of [[Rich Internet Application|rich internet applications]] (RIAs) using [[C Sharp (programming language)|C#]] and [[Extensible Application Markup Language|XAML]]. It was developed as a successor to [[Microsoft Silverlight]], enabling developers to migrate existing Silverlight applications to the web without rewriting their codebase. This framework is built on current web standards, including [[HTML5]], CSS3, and [[WebAssembly]], ensuring broad compatibility across modern web browsers regardless of the operating system without requiring plugins.
'''OpenSilver''' is an open-source framework designed to facilitate the development of [[Rich Internet Application|rich internet applications]] (RIAs) using [[C Sharp (programming language)|C#]] and [[Extensible Application Markup Language|XAML]]. It was developed as a successor to [[Microsoft Silverlight]], enabling developers to migrate existing Silverlight applications to the web without rewriting their codebase. This framework is built on current web standards, including [[HTML5]], CSS3, and [[WebAssembly]], ensuring broad compatibility across modern web browsers regardless of the operating system without requiring plugins.


OpenSilver is a community-driven project that is freely available for anyone to use, modify, or improve. It operates under the MIT license. It is compatible with Microsoft's .NET platform, allowing developers to use C#, [[Visual Basic (.NET)|VB.NET]],<ref>{{Cite web|url=https://www.infoq.com/news/2023/10/opensilver-20-vbnet/|title=OpenSilver 2.0 Adds VB.NET, RIA Services and Live XAML Preview|website=InfoQ|access-date=October 20, 2023}}</ref> [[F Sharp (programming language)|F#]],<ref>{{Cite web|url=https://sdtimes.com/softwaredev/opensilver-2-1-adds-support-for-f/|title=OpenSilver 2.1 adds support for F#|website=SD Times|access-date=February 7, 2024}}</ref> and XAML for application development, thereby maintaining a familiar development experience for those from a Silverlight or WPF background. Over the past two years, OpenSilver's latest release, version 2.2,<ref>{{Cite web|url=https://www.infoworld.com/article/3715391/opensilver-22-shines-on-lightswitch.html|title=OpenSilver 2.2 shines on LightSwitch|website=InfoWorld|access-date=April 30, 2024}}</ref> has positioned itself as an advanced web framework designed for line-of-business applications.
OpenSilver is a community-driven project that is freely available for anyone to use, modify, or improve. It operates under the MIT license. It is compatible with Microsoft's .NET platform, allowing developers to use C#, [[Visual Basic (.NET)|VB.NET]],<ref>{{Cite web|url=https://www.infoq.com/news/2023/10/opensilver-20-vbnet/|title=OpenSilver 2.0 Adds VB.NET, RIA Services and Live XAML Preview|website=InfoQ|access-date=October 20, 2023}}</ref> [[F Sharp (programming language)|F#]],<ref>{{Cite web|url=https://sdtimes.com/softwaredev/opensilver-2-1-adds-support-for-f/|title=OpenSilver 2.1 adds support for F#|website=SD Times|date=7 February 2024 |access-date=February 7, 2024}}</ref> and XAML for application development, thereby maintaining a familiar development experience for those from a Silverlight or WPF background. Over the past two years, OpenSilver's latest release, version 2.2,<ref>{{cite news |last=Ramel |first=David |date=April 30, 2024 |title=OpenSilver 2.2 Aims to Revive Visual Studio LightSwitch Legacy Apps |url=https://visualstudiomagazine.com/Articles/2024/04/30/opensilver-update.aspx |work=Visual Studio Magazine |access-date=July 10, 2024}}; {{cite news |last=Krill |first=Paul |date=April 30, 2024 |title=OpenSilver 2.2 shines on LightSwitch |url=https://www.infoworld.com/article/2337226/opensilver-22-shines-on-lightswitch.html |work=InfoWorld |access-date=July 10, 2024}}; {{cite news |last=Kapić |first=Edin |date=May 30, 2024 |title=OpenSilver 2.2 Migrates LightSwitch Applications |url=https://www.infoq.com/news/2024/05/opensilver-2-2-lightswitch/ |work=InfoQ |access-date=July 10, 2024}}; {{cite news |last=Ewbank |first=Kay |date=April 30, 2024 |title=OpenSilver 2.2 Adds LightSwitch Compatibility Pack |url=https://www.i-programmer.info/news/89-net/17154-opensilver-22-adds-lightswitch-compatibility-pack.html |work=I-Programmer |access-date=July 10, 2024}}; {{cite news |last=Lee |first=Michaelis |date=May 1, 2024 |title=Continuing Development Of Silverlight Technology: OpenSilver 2.2 Platform Released |url=https://www.gamingdeputy.com/continuing-development-of-silverlight-technology-opensilver-2-2-platform-released/ |work=Gamingdeputy |access-date=July 10, 2024}}</ref> has positioned itself as an advanced web framework designed for line-of-business applications.


==History==
==History==
In 2014, Userware, founded in 2007 and led by Giovanni Albani,<ref>{{Cite web|url=https://www.dotnetrocks.com/details/1769|title=OpenSilver Ships with Giovanni Albani|website=.NET Rocks!|access-date=December 9, 2021}}</ref> launched CSHTML5,<ref>{{Cite web|url=https://visualstudiomagazine.com/articles/2019/03/12/cshtml5-open-source.aspx|title=Missing Silverlight and Waiting for Blazor? CSHTML5 for C# Web Development Goes Open Source|website=Visual Studio Magazine|access-date=March 12, 2019}}</ref> a precursor to becoming OpenSilver. This initiative began efforts to provide a contemporary alternative to Microsoft Silverlight, focusing on open-source development. As technology progressed and the need for modern web application frameworks grew, CSHTML5 evolved, culminating in the creation of OpenSilver 1.0 in October 2021.<ref>{{Cite web|url=https://visualstudiomagazine.com/articles/2021/10/26/opensilver-1-0.aspx|title=OpenSilver v1.0 Arrives as Microsoft Ends Silverlight Support|website=Visual Studio Magazine|access-date=October 26, 2021}}</ref> OpenSilver aimed to seamlessly integrate Silverlight's legacy capabilities with the demands of modern web development.
In 2014, Userware, founded in 2007 and led by Giovanni Albani,<ref>{{Cite web|url=https://www.dotnetrocks.com/details/1769|title=OpenSilver Ships with Giovanni Albani|website=.NET Rocks!|access-date=December 9, 2021}}</ref> launched CSHTML5,<ref>{{Cite web|url=https://visualstudiomagazine.com/articles/2019/03/12/cshtml5-open-source.aspx|title=Missing Silverlight and Waiting for Blazor? CSHTML5 for C# Web Development Goes Open Source|website=Visual Studio Magazine|access-date=March 12, 2019}}</ref> a precursor to becoming OpenSilver. This initiative began efforts to provide a contemporary alternative to Microsoft Silverlight in 2020,<ref>{{cite news |last=Schwichtenberg |first=Holger |date=March 11, 2020 |title=OpenSilver: Silverlight kehrt als Open Source zurück |trans-title=OpenSilver: Silverlight returns as open source |url=https://www.heise.de/news/OpenSilver-Silverlight-kehrt-als-Open-Source-zurueck-4680872.html |language=German |work=Heise Online |access-date=July 10, 2024}}; {{cite news |last=Schwichtenberg |first=Holger |date=March 11, 2020 |title=OpenSilver: Silverlight kehrt als Open Source zurück |trans-title=OpenSilver: Silverlight returns as open source |url=https://www.heise.de/news/OpenSilver-Silverlight-kehrt-als-Open-Source-zurueck-4680872.html |language=German |work=Heise Online |access-date=July 10, 2024}}; {{cite news |last=Krill |first=Paul |title=OpenSilver resurrects Silverlight with WebAssembly |website=InfoWorld |date=March 11, 2020 |url=https://www.infoworld.com/article/2256485/opensilver-resurrects-silverlight-with-webassembly.html |access-date=July 10, 2024}}; {{cite news |last1=Krill |first1=Paul |last2=Elyan |first2=Jean |title=OpenSilver ressuscite Silverlight avec WebAssembly |trans-title=OpenSilver Resurrects Silverlight with WebAssembly |language=French |website=Le Monde Informatique |date=March 13, 2024 |url=https://www.lemondeinformatique.fr/actualites/lire-visual-studio-code-la-derniere-beta-191-sort-du-bois-94227.html |access-date=July 10, 2024
}}</ref> focusing on open-source development. As technology progressed and the need for modern web application frameworks grew, CSHTML5 evolved, culminating in the creation of OpenSilver 1.0 in October 2021.<ref>{{cite news |last=Ramel |first=David |date=October 26, 2021 |title=OpenSilver v1.0 Arrives as Microsoft Ends Silverlight Support |url=https://visualstudiomagazine.com/articles/2021/10/26/opensilver-1-0.aspx |work=Visual Studio Magazine |access-date=July 10, 2024}}; {{cite news |last=Anderson |first=Tim |date=September 16, 2021 |title=OpenSilver throws Microsoft Silverlight devs a lifeline as end of support looms – or you could forget it ever happened |url=https://www.theregister.com/2021/09/16/opensilver_silverlight/ |work=The Register |publisher=Situation Publishing |access-date=July 10, 2024}}; {{cite news |last=Krčmář |first=Petr |date=October 14, 2021 |title=Silverlight je mrtev, ať žije OpenSilver |trans-title=Silverlight is dead, long live OpenSilver |url=https://www.root.cz/zpravicky/silverlight-je-mrtev-at-zije-opensilver/ |language=Czech |work=Root.cz |access-date=July 10, 2024}}; {{cite news |last=Taler |first=Hubert |date=October 14, 2021 |title=Umarł Silverlight, niech żyje OpenSilver |trans-title=Silverlight is dead, long live OpenSilver |url=https://spidersweb.pl/2021/10/silverlight-opensilver-windows-phone.html |language=Polish |work=Spider's Web |access-date=July 10, 2024}}</ref> OpenSilver aimed to seamlessly integrate Silverlight's legacy capabilities with the demands of modern web development.


The inception of OpenSilver was motivated by the discontinuation of Silverlight and the need for a robust solution that allows legacy Silverlight applications to continue functioning in a modern web environment. By providing a path forward for these applications, OpenSilver helps preserve the investment made in Silverlight-based projects while taking advantage of the advancements in web technology.
The inception of OpenSilver was motivated by the discontinuation of Silverlight and the need for a robust solution that allows legacy Silverlight applications to continue functioning in a modern web environment.<ref>{{cite web |url=https://alternativeto.net/software/opensilver/about/ |title=OpenSilver |website=AlternativeTo |publisher= |access-date=July 10, 2024}}</ref> By providing a path forward for these applications, OpenSilver helps preserve the investment made in Silverlight-based projects while taking advantage of the advancements in web technology.


==Version history and milestones==
==Version history and milestones==
Line 63: Line 63:
| April 23, 2024
| April 23, 2024
| Support for Visual Studio LightSwitch.
| Support for Visual Studio LightSwitch.
|
|-
| style="background-color: #6A0DAD;color:#f1f1f1" | 3.0
| July 10, 2024
| AI-Powered UI designer and supports Windows, Linux, and Mac.
|}
|}



Latest revision as of 04:38, 22 July 2024

OpenSilver
Developer(s)Userware
Initial releaseMarch 9, 2020; 4 years ago (2020-03-09)
Stable release
2.2 / April 30, 2024; 2 months ago (2024-04-30)[1]
Repositorygithub.com/OpenSilver/OpenSilver/
Written inC#
Operating systemCross-platform
Platform.NET, WebAssembly
Available inEnglish
TypeSoftware framework
LicenseMIT License
Websiteopensilver.net

OpenSilver is an open-source framework designed to facilitate the development of rich internet applications (RIAs) using C# and XAML. It was developed as a successor to Microsoft Silverlight, enabling developers to migrate existing Silverlight applications to the web without rewriting their codebase. This framework is built on current web standards, including HTML5, CSS3, and WebAssembly, ensuring broad compatibility across modern web browsers regardless of the operating system without requiring plugins.

OpenSilver is a community-driven project that is freely available for anyone to use, modify, or improve. It operates under the MIT license. It is compatible with Microsoft's .NET platform, allowing developers to use C#, VB.NET,[2] F#,[3] and XAML for application development, thereby maintaining a familiar development experience for those from a Silverlight or WPF background. Over the past two years, OpenSilver's latest release, version 2.2,[4] has positioned itself as an advanced web framework designed for line-of-business applications.

History

[edit]

In 2014, Userware, founded in 2007 and led by Giovanni Albani,[5] launched CSHTML5,[6] a precursor to becoming OpenSilver. This initiative began efforts to provide a contemporary alternative to Microsoft Silverlight in 2020,[7] focusing on open-source development. As technology progressed and the need for modern web application frameworks grew, CSHTML5 evolved, culminating in the creation of OpenSilver 1.0 in October 2021.[8] OpenSilver aimed to seamlessly integrate Silverlight's legacy capabilities with the demands of modern web development.

The inception of OpenSilver was motivated by the discontinuation of Silverlight and the need for a robust solution that allows legacy Silverlight applications to continue functioning in a modern web environment.[9] By providing a path forward for these applications, OpenSilver helps preserve the investment made in Silverlight-based projects while taking advantage of the advancements in web technology.

Version history and milestones

[edit]
Version Release Date Notes
Technology Preview March 9, 2020 /
Beta September 13, 2021 /
1.0 October 12, 2021 /
1.1 October 4, 2022 Support for third-party libraries, including Telerik UI for Silverlight.
2.0 October 16, 2023 Support for the VB.NET programming language.
2.1 February 06, 2024 Support for the F# programming language and integration of the Microsoft Silverlight Toolkit.
2.2 April 23, 2024 Support for Visual Studio LightSwitch.
3.0 July 10, 2024 AI-Powered UI designer and supports Windows, Linux, and Mac.

Technology

[edit]
OpenSilver: The primary logical components: Compiler and Runtime
OpenSilver: The primary logical components: Compiler and Runtime

OpenSilver integrates three main components:

  1. Compiler - Converts XAML into C# equivalents and copies resources, such as images, to the output folder.
  2. Runtime - Bridges the HTML DOM and the XAML code.
  3. Simulator - Allows developers to debug OpenSilver web applications like desktop applications.

OpenSilver's foundation is its ability to take .NET assemblies and XAML files (the building blocks of Silverlight applications) as input and use Blazor to compile them in WebAssembly.

Compilation process

[edit]
  • XAML to C# Conversion - Converts XAML files into C# classes, preserving the layout and styling of Silverlight applications.
  • .NET to WebAssembly Execution - NET assemblies, which include C#, VB.NET, and F# code, can execute in web browsers through two primary modes supported by Mono for WebAssembly: interpreter mode and Ahead-of-Time (AOT) compilation.

Runtime environment

[edit]
  • WebAssembly Runtime - The compiled code runs within the browser’s WebAssembly runtime, generating HTML, CSS, and JavaScript to render the application.
  • JavaScript Interoperability - A JavaScript layer bridges WebAssembly and the browser's native functions, allowing access to browser APIs that are not directly accessible via WebAssembly.
  • HTML/CSS Renderer - The browser renders the converted HTML and CSS, including the visual layout, styles, and interactive elements defined in the original XAML.

Development and debugging

[edit]
  • Facilitate Development and Testing - The simulator provides a robust and accurate environment mimicking Silverlight's behavior, aiding the transition from Silverlight to OpenSilver.

High-level architecture of OpenSilver

[edit]
OpenSilver: Top-level architectural diagram
OpenSilver: Top-level architectural diagram
  • Blazor Web App (C#) - The entry point creates an OpenSilver application instance and runs the code in WebAssembly.
  • OpenSilver App (C#, VB, F#, and XAML) - Integrates several mechanisms to run converted Silverlight applications on standard web technologies in modern browsers without plugins.

Development tools

[edit]

OpenSilver offers development tools and a software development kit (SDK[10]) to aid application development. These tools include Visual Studio project templates and the OpenSilver Simulator, simplifying the workflow for developers accustomed to Silverlight or .NET environments.

Supported IDE

[edit]
Product name Code name Version number .NET Framework .NET (formerly .NET Core)
Visual Studio 2019 Dev16 16.0 Only to run the OpenSilver simulator application 6.0
Visual Studio 2022 Dev17 17.0 Only to run the OpenSilver simulator application 6.0, Recommended: 7.0, 8.0

NOTE: The roadmap for further development of OpenSilver and its ecosystem included developing CLI and supporting Visual Studio Code.

Documentation and resources

[edit]
  • Official Documentation - Provides an overview of OpenSilver, including how to get started, migration strategies, and detailed technical information.
  • Tutorials and Guides - Accessible on GitHub, along with sample projects, examples, and helper tools.
  • Community Forums and Support - Discussions on GitHub Issues.

Licensing

[edit]

OpenSilver is licensed under the MIT License, which allows users to freely use, modify, distribute, and sell the software as long as they include the original copyright and permission notices.

See also

[edit]

References

[edit]
  1. ^ "OpenSilver 2.2 Aims to Revive Visual Studio LightSwitch Legacy Apps". Visual Studio Magazine. Retrieved April 30, 2024.
  2. ^ "OpenSilver 2.0 Adds VB.NET, RIA Services and Live XAML Preview". InfoQ. Retrieved October 20, 2023.
  3. ^ "OpenSilver 2.1 adds support for F#". SD Times. 7 February 2024. Retrieved February 7, 2024.
  4. ^ Ramel, David (April 30, 2024). "OpenSilver 2.2 Aims to Revive Visual Studio LightSwitch Legacy Apps". Visual Studio Magazine. Retrieved July 10, 2024.; Krill, Paul (April 30, 2024). "OpenSilver 2.2 shines on LightSwitch". InfoWorld. Retrieved July 10, 2024.; Kapić, Edin (May 30, 2024). "OpenSilver 2.2 Migrates LightSwitch Applications". InfoQ. Retrieved July 10, 2024.; Ewbank, Kay (April 30, 2024). "OpenSilver 2.2 Adds LightSwitch Compatibility Pack". I-Programmer. Retrieved July 10, 2024.; Lee, Michaelis (May 1, 2024). "Continuing Development Of Silverlight Technology: OpenSilver 2.2 Platform Released". Gamingdeputy. Retrieved July 10, 2024.
  5. ^ "OpenSilver Ships with Giovanni Albani". .NET Rocks!. Retrieved December 9, 2021.
  6. ^ "Missing Silverlight and Waiting for Blazor? CSHTML5 for C# Web Development Goes Open Source". Visual Studio Magazine. Retrieved March 12, 2019.
  7. ^ Schwichtenberg, Holger (March 11, 2020). "OpenSilver: Silverlight kehrt als Open Source zurück" [OpenSilver: Silverlight returns as open source]. Heise Online (in German). Retrieved July 10, 2024.; Schwichtenberg, Holger (March 11, 2020). "OpenSilver: Silverlight kehrt als Open Source zurück" [OpenSilver: Silverlight returns as open source]. Heise Online (in German). Retrieved July 10, 2024.; Krill, Paul (March 11, 2020). "OpenSilver resurrects Silverlight with WebAssembly". InfoWorld. Retrieved July 10, 2024.; Krill, Paul; Elyan, Jean (March 13, 2024). "OpenSilver ressuscite Silverlight avec WebAssembly" [OpenSilver Resurrects Silverlight with WebAssembly]. Le Monde Informatique (in French). Retrieved July 10, 2024.
  8. ^ Ramel, David (October 26, 2021). "OpenSilver v1.0 Arrives as Microsoft Ends Silverlight Support". Visual Studio Magazine. Retrieved July 10, 2024.; Anderson, Tim (September 16, 2021). "OpenSilver throws Microsoft Silverlight devs a lifeline as end of support looms – or you could forget it ever happened". The Register. Situation Publishing. Retrieved July 10, 2024.; Krčmář, Petr (October 14, 2021). "Silverlight je mrtev, ať žije OpenSilver" [Silverlight is dead, long live OpenSilver]. Root.cz (in Czech). Retrieved July 10, 2024.; Taler, Hubert (October 14, 2021). "Umarł Silverlight, niech żyje OpenSilver" [Silverlight is dead, long live OpenSilver]. Spider's Web (in Polish). Retrieved July 10, 2024.
  9. ^ "OpenSilver". AlternativeTo. Retrieved July 10, 2024.
  10. ^ "Download OpenSilver SDK". OpenSilver website.

Further reading

[edit]
[edit]