-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
A fresh git clone and build of the solution in VS2022 results in none of the .axaml files working in the preview. The error shown is "Dynamic code generation is not supported on this platform."
I did a google search and found AvaloniaUI/Avalonia#13760 where a commenter suggested: "Well, previewer cannot be supported with PublishAot binaries, as AOT doesn't support dynamic code which is essential for the previewer."
I can verify the following suggestion did fix the problem. That fix is to add this line in Solitaire.Desktop.csproj:
<PublishAot Condition="'$(Configuration)' != 'Debug'" >true</PublishAot>
Result: axaml files new appear at design time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels