Silk.NET icon indicating copy to clipboard operation
Silk.NET copied to clipboard

Mark OS Specific APIs

Open HurricanKai opened this issue 6 years ago • 5 comments

In Net5.0 and onwards the Platform Compatability Analyzer will be enabled by default. We should mark OS Specific APIs using SupportedOSPlatform and UnsupportedOSPlatform.

HurricanKai avatar Aug 27 '20 07:08 HurricanKai

@Perksey do upstreams mark such OS specific APIs somehow?

HurricanKai avatar Aug 27 '20 07:08 HurricanKai

Unfortunately not, this will have to be functionality defined in generator.json somehow.

Perksey avatar Aug 27 '20 11:08 Perksey

That's unfortunate. We should in the future also look into targeting only the platforms that we want to target, which automatically hides stuff like iOS packages from windows targeting people. (net5.0 onwards)

HurricanKai avatar Aug 27 '20 11:08 HurricanKai

In 3.0 we want to exclusively target net6.0 so assigning this to that milestone. Adding this to both build tools and silk touch, might be able to make that a silk touch feature. Also, ideally we can get the attributes in for 2.0

HurricanKai avatar Aug 27 '20 11:08 HurricanKai

@Exanite this could be handled in a similar way to AddApiProfiles e.g. when generating for OS-specific headers

Perksey avatar Aug 23 '26 16:08 Perksey