I have a MAUI project that is targetting an Android physical device, however, it seems Visual Studio thinks I am targetting an iOS device. Please see this screenshot:
This image shows the selected device for debug, however the opened file shows DAttendance (net8.0-ios)
and the preprocessor directive IOS
is defined, making that #if
not working.
What is it going on here?
Please select the .net8.0-android:
This area's value will decide the platform you are coding target.