You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
Result: axaml files new appear at design time.
The text was updated successfully, but these errors were encountered: