Closed rabbitism closed 6 months ago
It’s not related to themes. But likely .net trimmer removes RelativeSource struct as it’s not used in the rest of the precompiled project. Keep in mind, that previewer compiles previewing XAML file on top of already compiled project. In this case we want to avoid trimming as much as possible.
This PR should have technically make it work better. At least for a typical runtime loader. But I suppose there something else that makes these trimming attributes useless https://github.com/AvaloniaUI/Avalonia/pull/12937
Unfortunately, this issue is still not resolved. With 11.0.7, it reports the same error when only referencing Semi theme. Is there anything I should do to fix from my side?
@rabbitism At least for me, as i use Material.Avalonia theme, putting <FluentTheme />
above desired to be used theme in App.axaml solves the issue, previewer is working, and theme is being overwritten by a theme declared after. Only pain in the need to delete this line every-time and recompile when i want to deploy
@rabbitism At least for me, as i use Material.Avalonia theme, putting
<FluentTheme />
above desired to be used theme in App.axaml solves the issue, previewer is working, and theme is being overwritten by a theme declared after. Only pain in the need to delete this line every-time and recompile when i want to deploy
This issue magically disappeared after 11.0.9
Yes, it was fixed
Describe the bug
Please see issue in https://github.com/irihitech/Semi.Avalonia/issues/252. Originally I thought it's Semi.Avalonia's bug, but I tried and it reports the same error if I remove all theme packages.
To Reproduce
Create a new Avalonia project. Remove FluentTheme from App.xaml Build and check previewer of MainWindow.
AvaloniaVS plugin version
11.5
Avalonia version
11.0.6
Visual Studio version
17.8.0
Relevant log output
Additional context
No response