.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I know you can use the #if to determine the platform like this:
#if ANDROID
#elif IOS
#endif
but how can I do the same to determine the Idiom:
#if Phone
#elif Desktop
#endif
and how can I do a combination like this:
#if Phone && ANDROID
#elif Desktop && IOS
#endif
Thanks,
Jassim
you can add additional symbols to the msbuild file or the command line.