1017 B
1017 B
description |
---|
Run in the browser with WebAssembly |
Running in the Browser
It is currently very early days and not ready for production, however if you want to test this exciting new feature please take the following steps.
-
Install
wasm-tools
workload tools. See dotnet documentation. -
Install or update the dotnet templates to the latest version (0.10.11 or above).
dotnet new -i avalonia.templates
- Create a new directory for the project.
mkdir WebTest
cd WebTest
- Generate a new project that supports running in the browser.
dotnet new avalonia.xplat
- In order to run simply do:
cd WebTest.Web
dotnet run
Troubleshooting
If you have not performed the step to install wasm-tools
, you will encounter errors when running the app in your browser later (e.g. System.DllNotFoundException: libSkiaSharp
) and you will need to rebuild again before the app will run.