question

NickJ-2360 avatar image
0 Votes"
NickJ-2360 asked RobCaplan edited

What project types to use for desktop and mobile?

Hi everyone,

I've been a .NET developer mainly in Winforms/Desktop for the last 15 years.
Now I am busy with a new project and I am confused on what project types/platforms to use because there's so much out there. It must work on Windows & Android.

The core code/logic should be shared (mainly json calls to server and data returned so nothing platform specific in the core assembly)
It's the UI (desktop & mobile) that will have charts, timers, settings to store.

I started with a C# .NET 5 WPF app to see how far I would get but I already stumbled across issues with trying to store simple settings in a generic way.
In Winforms we had app settings but what to use in WPF and mobile?
Is there a class that exists specifically to store settings and takes care about how it's stored and platform independent?

I read that a new framework 'WinUI/Reunion project' is also coming so now it's even more confusing on what to choose with all these frameworks and technologies like .NET Framework, .NET Core, .NET5, WinUI, winforms vs XAML, WPF, UWP, Xamarin...
What project types/frameworks would you suggest for:
1. The core assembly to share with the two UI's
2. The desktop app (UI)
3. The mobile app (UI)

Thank you very much,
Nick

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SimpleSamples avatar image
0 Votes"
SimpleSamples answered SimpleSamples edited

See The New .NET Multi-platform App UI | Xamarin Blog. However that is so new that you might need to install Visual Studio 2022 | Visual Studio Blog. It will replace Xamarin.Forms. See Building UWP Apps Using Xamarin.Forms for an explanation of how to add UWP support.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, didn't know about that one yet. :-)
What would you recommend for now to use before switching to that framework in the future?

0 Votes 0 ·

Actually I do not know but I will update my answer in case that helps.

1 Vote 1 ·