I'm trying to create and use de Portable library for a cross platform Xamarin.Forms. But the preprocessor for the platform doesn't seem set when I break in the code.
#if WINDOWS_PHONE || __ANDROID__
Debug.WriteLine("Passed");
#endif
Using step by step I can see all the code between the preprocessor condition be skipped (tried on Android and Windows Phone). But when I try the same thing in the start project it works.
In Visual Studio the code should be highlighted when active but it's not in the PCL.
The preprocessors defined in the startup project should be shared with the library, no ?