Skip to content

A simple example of running C# inside the browser and how to compile the code with mono-wasm

Notifications You must be signed in to change notification settings

0x414c49/mono-wasm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Mono Wasm

This repo contains slides and materials for Web assembly and Blazor

Tools

This repo is highly dependant on Mono SDK. Please install it first.

  1. Mono SDK
  2. Mono Wasm Compiler

Run and compile the CSharp example

  1. First make sure you have installed Mono and extracted mono-wasm.
  2. Make sure Mono binaries can be accessed in the terminal/command-line. (Set the bin of the mono to env path)
  3. In the compile.ps1 change address of $WASM_SDK to the downloaded/extracted one.
  4. Make sure you have dotnet-serve installed https://www.nuget.org/packages/dotnet-serve/.
  5. Run compile.ps1 to compile, publish and browse your code.
  6. Go to http://localhost:8080/index.html to try it!

About

A simple example of running C# inside the browser and how to compile the code with mono-wasm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published