using #if for Idiom

Jassim Al Rahma 1,526 Reputation points
2022-11-28T17:53:32.697+00:00

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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,926 Reputation points
    2022-11-28T18:14:27.667+00:00

    you can add additional symbols to the msbuild file or the command line.

    0 comments No comments