mono-wasm-example
mono-wasm-example copied to clipboard
A simple example of running C# inside the browser and how to compile the code with mono-wasm
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.
Run and compile the CSharp example
- First make sure you have installed
Mono
and extractedmono-wasm
. - Make sure Mono binaries can be accessed in the terminal/command-line. (Set the bin of the mono to env path)
- In the
compile.ps1
change address of$WASM_SDK
to the downloaded/extracted one. - Make sure you have dotnet-serve installed https://www.nuget.org/packages/dotnet-serve/.
- Run
compile.ps1
to compile, publish and browse your code. - Go to
http://localhost:8080/index.html
to try it!