Jens

Results 32 comments of Jens

second that, trying to implement it myself is a little overwhelming, because the used AvaloniaView is not implemented for windows, but oddly for all other platforms. * https://github.com/AvaloniaUI/Avalonia/blob/master/src/Android/Avalonia.Android/AvaloniaView.cs * https://github.com/AvaloniaUI/Avalonia/blob/master/src/iOS/Avalonia.iOS/AvaloniaView.cs...

i created a draft PR #8 It's quite tough, i've done the obvious things. But since i added the desktop/win32 i get super strange compile errors. i didn't change anything...

@kekekeks why is the axaml-compiler trying to parse non-axaml files? I deduct, because the problem started when i included the avalonia.win32 nuget, that the culprit is somewhere in the targets/props...

The problem is ALL xaml files get added to the msbuild property "AdditionalFiles" and the avalonia source generator tries to parse ALL additional xaml files, and fails on the maui...

@maxkatz6 @emmauss @danwalmsley I'm really stuck here, can you help pls? I'm evaluating avalonia for a gradual migration from maui to avalonia. It's essential that i can get a mixed...

AFAIK one solution could be to relax ResolveView in the SourceGenerator to not throw a terminating exception, but to ignore (warn) if processing a imcompatible (non-avalonia) xaml-files was unsuccessful. https://github.com/AvaloniaUI/Avalonia/blob/0230bf782af1f15544804126cd3390dd8959d6bc/src/tools/Avalonia.Generators/NameGenerator/AvaloniaNameGenerator.cs#L45C50-L45C50

i guess, this might be related too. https://github.com/AvaloniaUI/Avalonia/issues/4045#issuecomment-761474478

@maxkatz6 I’m still trying to implement it in a separate fork of the main avalonia repo. But I have a lot of question marks. For example: do you mean it’s...

@maxkatz6 it **seems** to work the other way around: https://github.com/microsoft/microsoft-ui-xaml/issues/2828 maybe we can host a WinUI App inside an avalonia App? 😬

@maxkatz6 big thanks for the detailed answer.