Replies: 4 comments
-
Hi BinToss, I'm not clear on this. In order to generate a preview, Avant Garde looks at your .csproj file in order to discover what Avalonia version your project references. It then locates the "Avalonia.Designer.HostApp.dll" for that version and runs it. This host is what generates previews in terms of bitmaps, which are delivered to Avant Garde over a socket.
I'm not able to repeat this problem (see the screenshot below). But I am only running against 11 preview 8. I have not yet tried it against 11RC1.
I'm glad you like this. It only exists because my first attempt at building a previewer generated the previews itself, without using the Designer Host App. To do this, I had to parse XAML myself and the export feature is a hang-over from that. |
Beta Was this translation helpful? Give feedback.
-
It seems this issue only occurs when running the AppImage via WSL2 Ubuntu 20.04.6 LTS (I've been putting off updating for a while now). When running Avant Garde A11 via `` or running the 1.2.1 Windows x64 release, this issue either does not occur or is not written to the preview host. Instead, the preview pane just displays "None". |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This took me a few days to figure out.
The issue isn't that you're missing a DLL or that Avant Garde can't find one. Rather, the message indicates you're using a build of Avant Garde which does not support the version of Avalonia UI used in your project i.e. Avant Garde 1.3.0 supports only Avalonia 11.0.0-preview8. Later and earlier versions of Avalonia are not supported regardless of differences' insignificance.
I've been running into this issue with a lot of Avalonia-focused software and IDE extensions lately—they are made to support a specific version of Avalonia or a specific flavor of XAML. Correct me if I'm wrong; the project, build output, and XAML markup can provide all the necessary data for previews, or at least URIs to fetch that data. On that note, I'm very grateful for Avant Garde's "Export Avalonia Schema" feature. Despite Avant Garde being mostly useless for Avalonia UI 11.0.0-rc1.1, that specific feature has been a lifesaver in the hell that is developing in VSCode wherein developers have no acceptable previewer, let alone a designer. The working previewer we have is specifically for NoesisGui's flavor of XAML.
Beta Was this translation helpful? Give feedback.
All reactions