Skip to content

Weird WebAssembly error - regarding 'ManagedToNativeGenerator' #19425

Answered by TangibleDave
TangibleDave asked this question in Q&A
Discussion options

You must be logged in to vote

Found the problem: the UI project referenced by the WebAssembly has a reference to 'Avalonia.Desktop'.
The solution is to move nearly all the existing desktop UI code to a new library project shared by both the desktop project and the WebAssembly project. The shared UI project will not have the Avalonia.Desktop reference.

If I had followed the existing documentation more carefully I would have seen this earlier, but impatience got the better of me.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timunie
Comment options

Answer selected by TangibleDave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants