How To Write Platform-Specific Code in .NET MAUI

Published: 01 January 1970
on channel: Gerald Versluis
10,544
375

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/Geral...

🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVerslui...

🐦 Follow me on Twitter:   / jfversluis  
🤝 Join the Discord server:   / discord  

🔗 Links
Sample code repo: https://github.com/jfversluis/MauiPla...
Windows Subsystem for Android Video:    • Windows Subsystem for Android: Run an...  

⏱ 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:   / jfversluis  
All the rest: https://jfversluis.dev

#dotnetmaui #platformspecific #maui #dotnet6 #multitargeting #singleproject


Watch video How To Write Platform-Specific Code in .NET MAUI online without registration, duration hours minute second in high quality. This video was added by user Gerald Versluis 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,544 once and liked it 375 people.