👉 Web Assembly
Run in the browser with WebAssembly
- Install
wasm-tools
workload tools. See dotnet documentation. If you have an older .NET SDK, it might ask you to install other workloads likewasm-experimental
as well.
dotnet workload install wasm-tools
- Install or update the dotnet templates to the latest version.
dotnet new install avalonia.templates
- Create a new directory for the project.
mkdir BrowserTest
cd BrowserTest
- Generate a new project that supports running in the browser.
dotnet new avalonia.xplat
- In order to run simply do:
cd BrowserTest.Browser
dotnet run