question

JamesJ-9502 avatar image
0 Votes"
JamesJ-9502 asked VictorChelaru-3182 commented

.NET 5 WPF application support in IOS and Android

.NET 5 is s unified platform to write code once and run anywhere. If I create WPF application in .NET 5 which can be executed in Android and IOS. Please confirm? If I can not then what is the additional steps needs to be take care.

windows-wpf
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

DaisyTian-1203 avatar image
2 Votes"
DaisyTian-1203 answered VictorChelaru-3182 commented

You may not make .NET 5 WPF application executed in Android and IOS.
.Net core 5 can be installed on Windows, macOS, and Linux, for x86, x64, Arm32, Arm64.The most significant addition for .NET 5.0 is Windows Arm64. So compared to net3.1, it's just more Arm64. For more details about .Net core 5, you can refer to Announcing .NET 5.0
If you want to create apps that can run in IOS and Android with C# code, you can use Xamarin which let you build native apps for Android, iOS, and macOS using .NET code and platform-specific user interfaces. Looking forward, the .NET 6.0 may come out in November 2021, Xamarin developers can use the unified .NET platform when we release .NET 6.0.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 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.

So, We can expect .NET 6 release will allow to run WPF application in IOS and Android because of unified .NET platform in .NET 6 release. Correct me If I am wrong.

0 Votes 0 ·

Yes, you will be able to create .NET 6 applications on iOS and Android, but as I understand it, you will not be able to run WPF applications on iOS and Android - just like you cannot currently run WPF applications on Linux.

.NET 5 (and 6) are frameworks which allow C# to run on different platforms, but platform-specific libraries (like WPF) may still exist going forward.

If you would like to use WPF on Android and iOS, the closest thing is Xamarin.Forms.

0 Votes 0 ·