Unsupported ref libraries are not correctly annotated or not annotated at all when complex build conditions exist.
I don't know what's the underlying condition but it seems to happen for at least a few in the current build
- System.Security.Cryptography.Algorithms
- No UnsupportedOSPlatform/SupportedOSPlatform attributes exist in ref assembly even though the assembly is not supported for example on Android
- System.Net.Quic
- No UnsupportedOSPlatform/SupportedOSPlatform attributes exist in ref assembly even though the assembly is not supported for example on Browser
- System.IO.Ports
- Only UnsupportedOSPlatform("browser") attribute exists in ref assembly but the assembly is also not supported for example on iOS
This also caused #49201 problem and I checked only a few libraries so not sure how widespread the problem is.
@jeffhandley @buyaa-n