Crusaders.WPF.Simulator 1.0.6

dotnet add package Crusaders.WPF.Simulator --version 1.0.6                
NuGet\Install-Package Crusaders.WPF.Simulator -Version 1.0.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Crusaders.WPF.Simulator" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Crusaders.WPF.Simulator --version 1.0.6                
#r "nuget: Crusaders.WPF.Simulator, 1.0.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Crusaders.WPF.Simulator as a Cake Addin
#addin nuget:?package=Crusaders.WPF.Simulator&version=1.0.6

// Install Crusaders.WPF.Simulator as a Cake Tool
#tool nuget:?package=Crusaders.WPF.Simulator&version=1.0.6                

This repository contains the source code of the 2 following products, which share most of their code:

  • OpenSilver (www.opensilver.net) → It compiles C#/XAML/.NET to WebAssembly/HTML/CSS (Free, Open Source, MIT Licensed)
  • CSHTML5 (www.cshtml5.com) → It compiles C#/XAML/.NET to JavaScript/HTML/CSS (Dual Licensed)

The main branches are:

  • develop: this branch is where day to day development occurs
  • master: this branch corresponds to the version of the packages that are on Nuget.org

How to download the software and get started?

Read the "Getting Started" page of the OpenSilver documentation for a step-by-step tutorial.

Basically, you should download the .VSIX file (the extension for Microsoft Visual Studio) which installs the Project Templates:

Then, launch Visual Studio, click "Create a new project", and choose one of the installed templates.

After creating the project, you may then want to update the NuGet package to reference the very latest version (note: in the NuGet Package Manager, be sure to check the option "include pre-releases", otherwise you may not see the latest package version).

How to build the source code in this repository?

  1. Update Visual Studio: Make sure you are using the very latest version of Visual Studio. To check for updates, please launch the Visual Studio Installer from your Start Menu.

  2. Clone the repo: Clone this repository locally or download it as a ZIP archive and extract it on your machine.

  3. Run the restoration .BAT: Execute the .BAT file "restore-packages-opensilver.bat" located at the root of this repository.

  4. Update the OpenSilver compiler assemblies: OpenSilver has a dependency on an older version of OpenSilver to convert xaml files to C#, which is retrieved by the restore batch file (from Step No. 3.). Due to continous updates, this restored version can sometimes have outdated OpenSilver compiler assemblies which might cause unexpected compilation or runtime errors. To fix this, run the "update-compiler.bat" script located in the "build" folder.

  5. Delete bin/obj: Make sure to remove the "bin" and "obj" folders, if any. They can cause issues when building using the ".bat" files.

  6. Launch the Developer Command Prompt: Open the "Developer Command Prompt for VS 2022" (or whatever is the latest version of Visual Studio) from your Start Menu and navigate to the "build" folder of this repository.

  7. Run the compilation .BAT: Launch the file "build-nuget-package-OpenSilver.bat" located inside the "build" folder of this repository, and enter today's date or any other unique identifier to use for the version number (eg. 2023-10-18).

  8. Use the newly built packages: The previous command will create new NuGet packages inside the "build/output/OpenSilver" folder. You can now reference those packages from any OpenSilver application project (here is how) (Note: you may need to check the options "Include prerelease" in the "Manage NuGet Packages" window in order to see the newly created NuGet packages). For example, to use them on a new "Hello World" OpenSilver application, make sure you have the VSIX installed (see the top of this document), then launch Visual Studio, click "Create a new project" → "OpenSilver application", and replace the default NuGet package references with the new packages that you have built.

For convenience, instead of re-building the whole packages every time that you make a change to the OpenSilver code, you can build only the OpenSilver Runtime DLL.

To reduce the development inner loop time, you can also add a "Post Build" action to the OpenSilver Runtime project that will automatically copy the Runtime DLL from the "bin" folder into the OpenSilver NuGet package folder at "C:\Users\YOUR_USER_NAME.nuget\packages\opensilver\ENTER_LATEST_VERSION_HERE\lib\netstandard2.0"

Note: while rarely needed, there is also a .BAT file for building the Simulator package.

What if I get a compilation error with the code in this repository?

If you get a compilation error, it may be that a Visual Studio workload needs to be installed. To find out, please open the solution "OpenSilver.sln" and attempt to compile it with the latest version of the Visual Studio IDE.

If you are compiling using the Command Prompt, please double-check that you are using the "Developer Command Prompt" instead of the standard Command Prompt, and that the current directory is set to the "build" directory of this repository, because some paths in the .BAT files may be relative to the current directory.

If you still encounter any issues, please contact the OpenSilver team at: https://opensilver.net/contact.aspx

VSIX for OpenSilver

If you're looking to build the VSIX extension for OpenSilver, instructions and the necessary source code are available in our dedicated repository - OpenSilver.VSIX.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 122 9/23/2024
1.0.5 92 9/23/2024
1.0.4 101 9/23/2024
1.0.3 92 9/23/2024
1.0.2 94 9/23/2024
1.0.1 109 9/23/2024 1.0.1 is deprecated because it is no longer maintained.
1.0.0 111 9/23/2024 1.0.0 is deprecated because it has critical bugs.