👉 Web Assembly
Run in the browser with WebAssembly
- Install
wasm-toolsworkload tools. See dotnet documentation. If you have an older .NET SDK, it might ask you to install other workloads likewasm-experimentalas 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
- In the console output you will see HTTP and HTTPS links to open the app.