Running in the Browser
Run in the browser with WebAssembly
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.
  1. 1.
    install or update the dotnet templates to the latest version (0.10.11 or above).
1
dotnet new -i avalonia.templates
Copied!
2. Create a new directory for the project.
1
mkdir WebTest
2
cd WebTest
Copied!
3. Generate a new project that supports running in the browser.
1
dotnet new avalonia.xplat
Copied!
4. In order to run simply do:
1
cd WebTest.Web
2
dotnet run
Copied!
​
Last modified 19d ago
Export as PDF
Copy link