At some point you will find yourself needing to write some platform code while using .NET MAUI. Luckily, this is very much possible! In this video we will see how to leverage the multi-targeting approach in .NET MAUI single project to write platform-specific code.
💝 Join this channel to get access to perks:
https://www.youtube.com/channel/GeraldVersluis/join
🛑 Don’t forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1
🐦 Follow me on Twitter: https://twitter.com/jfversluis
🤝 Join the Discord server: https://discord.gg/2cAyTGNHBD
🔗 Links
Sample code repo: https://github.com/jfversluis/MauiPlatformCodeSample
Windows Subsystem for Android Video: https://www.youtube.com/watch?v=r3NwzDmmRdY
⏱ Timestamps
00:00 - Intro: Platform Code in .NET MAUI
00:15 - Amazing Members Shoutout!
01:11 - Understanding Platform Code in .NET MAUI
03:14 - Create Partial Class in Shared Code
05:58 - Implement Platform Specific Android Code
07:58 - Implement Platform Specific iOS Code
10:48 - Outro: Other Ways To Do This?
🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my…
Blog: https://blog.verslu.is
Twitch: https://twitch.tv/jfversluis
All the rest: https://jfversluis.dev
#dotnetmaui #platformspecific #maui #dotnet6 #multitargeting #singleproject