avalonia-docs icon indicating copy to clipboard operation
avalonia-docs copied to clipboard

Explain integration of Avalonia with mobile (xamarin) and web (.NET WASM) toolings

Open maxkatz6 opened this issue 2 years ago • 3 comments

It's easy to misunderstand what is Avalonia's role on mobile and look for various packaging related documentation pages. When in fact Avalonia does not do any packaging, so all the signing, icon related, dependencies questions should be redirected to the official Microsoft tooling.

For example, "How to add icon to Avalonia iOS app" should redirect users to the https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/app-icons?tabs=macos page ("How to add icon to .NET iOS app").

Short explanation of how exactly Avalonia works on top of mobile/wasm .NET runtime would be helpful as well.

maxkatz6 avatar May 04 '23 21:05 maxkatz6

It is a bit confusing, as old Xamarin.Native and Xamarin.Forms are now deprecated.

But in fact, new .NET mobile runtime (starting with .NET 6) is in fact the same Xamarin.Native with modernizations, meaning old documentation is still applicable. And instead Xamarin.Forms there is now MAUI.

Meaning, both MAUI and Avalonia work on top of .NET mobile runtime (formerly Xamarin.Native)

maxkatz6 avatar May 04 '23 21:05 maxkatz6

Agreed this would be extremely helpful as a new user, especially coming from MAUI which does handle all of these things.

davidchavezgrant avatar May 04 '23 21:05 davidchavezgrant

Also, to clarify more confusion, MAUI specifically implemented an abstraction for some features like app icons. https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons?view=net-maui-7.0&tabs=android . This won't work in Avalonia, as it is MAUI specific addition not available in plain Xamarin.Native (nor .net 6 mobile). Unless MS makes these API available everywhere which is less likely.

maxkatz6 avatar May 04 '23 21:05 maxkatz6