-
Beta Was this translation helpful? Give feedback.
Answered by
luoczeng
Feb 3, 2025
Replies: 2 comments 4 replies
-
You need the workload to match your NET version. So if your project is Net8, workload needs to be also in version 8 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
luoczeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, finally I figured it out myself.
After dotnet publish and dotnet serve to host the wasm locally, magically the avalonia.js is missing in the _framework folder. We can see the 404 error in the console window or developer tools.
After searching for avalonia.js on my PC, I happen to find one in a totally different project output folder, which I have no idea how it gets created. After manually copy this file to my 'bin\Release\net8.0-browser\publish\wwwroot_framework' folder, the application can run now.