System.Runtime.Versioning.TargetPlatformAttribute sealed class TargetPlatformAttribute : OSPlatformAttribute Records the platform that the project targeted. Documentation Code public TargetPlatformAttribute(string platformName)