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