I have added a portable class library to my solution in which has a global file that is linked to all the projects. This global file contains the assembly level attributes such as version, culture, and Com visibility. The problem I want to solve is that some attributes such as ComVisible are not valid in the context of a PCL so is there any symbol that used with #if to prevent that attribute for being included at build time?
Share
I overcame this issue by adding stub/dummy attribute classes to a compact framework project that mimic their FCL counterparts:
Now the shared source code file will compile in both projects without any modification to the code, and without any preprocessor directives.