Then, create a new project of type "OpenSilver", copy/paste your Silverlight code into that new project, and compile it.Ĭompilation errors are initially expected because some features are not supported (read below), but you can work around those limitations, for example by importing a. To do so, download and install the OpenSilver extension. To migrate an existing Silverlight application, simply recompile its source code using OpenSilver. Migrating an existing Silverlight application to OpenSilver When creating a new OpenSilver project with Visual Studio, you can choose between the Silverlight and the UWP dialects of XAML. To build your own application, simply download the free extension for Microsoft Visual Studio 2019 (16.11+) or 2022 (OpenSilver.VSIX), which installs the Project Templates to the "New Project" dialog. You can see an example of application here. When an application is compiled using OpenSilver, it runs on all those browsers without requiring users to install a plugin.Įxisting Silverlight applications need to be recompiled with OpenSilver in order to run on those browsers. OpenSilver applications are compatible with all browsers that support WebAssembly, which include all major browsers (Edge, Chrome, Firefox, Safari.) on all major platforms (Windows, macOS, iOS, Android, Linux, ChromeOS.). While backward compatible with Silverlight code, OpenSilver also provides support for more modern technologies including the latest Visual Studio, the latest C# language versions. Developers can build and maintain their applications using solely C# and XAML, without Razor nor HTML. ![]() OpenSilver is built on top of Blazor to provide XAML support, compatibility with the Silverlight APIs, and a Simulator-based debugging experience that is identical to that of desktop development. ![]() NET-based development, it still requires them to use HTML and CSS. While Blazor brings developers a step closer to frontend. Under the hood, OpenSilver leverages the open-source Microsoft Blazor technology and the Mono for WebAssembly components to compile C# and. OpenSilver leverages WebAssembly to make Silverlight applications run natively and securely on all browsers without requiring any installation or plugin. WebAssembly (WASM) is a new and industry-standard technology that is now built into all modern browsers, including Microsoft Edge, Google Chrome, Mozilla Firefox, and Apple Safari. It works by letting developers re-compile the source code of their Silverlight application into files that all modern browsers recognize, that is, HTML, CSS, and WebAssembly. OpenSilver is distributed as an extension for Microsoft Visual Studio. To create a tool to build rich web applications from scratch using C# and XAML, with the efficiency and productivity of the Silverlight SDK. ![]()
0 Comments
Leave a Reply. |