

OpenSilver is a modern, plugin-free, open-source reimplementation of Silverlight
source link: https://github.com/OpenSilver/OpenSilver
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This repository contains the source code of both OpenSilver (which compiles to WebAssembly) and CSHTML5 (which compiles to JavaScript). More information about those two products can be found at: www.opensilver.net and www.cshtml5.com
Instructions for OpenSilver:
TL;DR: Run "restore-packages-opensilver.bat" and then open the solution named "OpenSilver.sln" to compile the OpenSilver runtime.
How to build the source code?
- Clone this repository locally or download it as a ZIP archive and extract it on your machine
- Execute the file "restore-packages-opensilver.bat" (by double-clicking on it in Windows Explorer)
- Open the solution file "OpenSilver.sln" (located in the "src" folder) with Visual Studio 2019 or newer
- Build either the "SL" configuration or the "UWP" configuration, depending on whether you want to use the "OpenSilver" NuGet package (recommended) or the "OpenSilver.UWPCompatible" package. This will generate the assembly "OpenSilver.dll" in the "bin/OpenSilver/SL/" folder, or the assembly "OpenSilver.UWPCompatible.dll" in the "bin/OpenSilver/UWP/" folder.
How to test the changes that I make to the source code?
- Create a new Visual Studio project of type OpenSilver. To do so, you can install the latest VSIX available at https://opensilver.net/download.aspx , which will add new project templates to the"New Project" dialog of Visual Studio 2019.
- Build the OpenSilver source code (cf. previous question)
- Copy the 3 files "OpenSilver.dll", "OpenSilver.pdb", and "OpenSilver.xml" from the "bin/OpenSilver/SL/" folder of the OpenSilver source code (ie. the source code in this repository) into the folder "C:\Users\YOUR_USERNAME.nuget\packages\opensilver\PACKAGE_VERSION\lib\netstandard2.0" (please replace "YOUR_USERNAME" and "PACKAGE_VERSION" in the path), overwriting the existing files
- Build and run the project that you created at step 1
Instructions for CSHTML5:
TL;DR: Run "restore-packages-cshtml5.bat" and then open the solution named "CSHTML5.sln" to compile the CSHTML5 runtime.
How to build the source code?
- Clone this repository locally or download it as a ZIP archive and extract it on your machine
- Execute the file "restore-packages-cshtml5.bat" (by double-clicking on it in Windows Explorer)
- Open the solution file "CSHTML5.sln" (located in the "src" folder) with Visual Studio 2017 or newer
- Build either the "Debug" configuration or the "Migration" configuration, depending on whether you want to use the "CSHTML5" NuGet package (recommended for creating new apps) or the "CSHTML5.Migration" package (recommended for migrating existing Silverlight or WPF applications). This will generate the assembly "CSHTML5.dll" in the "bin/Debug/" folder, or the assembly "CSHTML5.Migration.dll" in the "bin/Migration/" folder.
Note: many low-level types are located in the Bridge.NET repository, which is located here .
How to test the changes that I make to the source code?
- Create a new Visual Studio project of type CSHTML5 version 2.x. To do so, you can install the VSIX available at http://forums.cshtml5.com/viewforum.php?f=6 (look for the latest version 2.x), which will add new project templates to the Visual Studio "New Project" dialog.
- Build the CSHTML5 source code (cf. previous question)
- Copy the 3 files "CSHTML5.dll", "CSHTML5.pdb", and "CSHTML5.xml" from the "bin/Debug/" folder of the CSHTML5 source code (ie. the source code in this repository) into the folder "packages/CSHTML5(...)/lib/net40/" of the project that you created at step 1, overwriting the existing files
- Build and run the project that you created at step 1
Recommend
-
10
F# and OpenSilver -- first steps This set of lab notes turned into a series of 3 posts. Many years ago, I made a series of posts ex...
-
10
F# and XAML and OpenSilver Emboldened by yesterday's suc...
-
13
F# and XAML and OpenSilver ctd. Last time, we conc...
-
13
Introducing October 12, 2021 Today we are thrilled to announce the release of OpenSilver 1.0 As Silverlight is reaching end of support, OpenSilver is...
-
14
Silverlight Lives On With OpenSilver Silverlight Lives On With OpenSilver Written by Mike James Tuesday, 12 October 2021 Today, October 12th 2021 marks the end of support of Microsoft Silverlight. It a...
-
9
F# and OpenSilver v1.0 An update to the previous series...
-
7
“OpenSilver is a plugin-free, open-source reimplementation of Silverlight” October 26, 2021Sarah Schlothauer...
-
7
Kouji (Kozy) Matsui on Twitter: "Epoxy 1.2.0 is out now! New supported OpenSilver, .NET 6.0 and F# 6.0 #epoxy #opensilver #xaml #mvvm https://t.co/lbOQ5YsVfH"Don’t miss what’s happeningPeople on Twitter are the first to know.
-
7
OpenSilver gains more features and improved performance
-
9
Open-source Jazz Jackrabbit 2 reimplementation Brought to you by
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK