26 lines
744 B
C#
26 lines
744 B
C#
#if NET5_0_OR_NETFRAMEWORK
|
|
namespace System.Runtime.Versioning
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
|
|
internal sealed class TargetPlatformAttribute : Attribute
|
|
{
|
|
public TargetPlatformAttribute(string platformName)
|
|
{
|
|
PlatformName = platformName;
|
|
}
|
|
|
|
public string PlatformName { get; }
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
|
|
internal sealed class SupportedOSPlatformAttribute : Attribute
|
|
{
|
|
public SupportedOSPlatformAttribute(string platformName)
|
|
{
|
|
PlatformName = platformName;
|
|
}
|
|
|
|
public string PlatformName { get; }
|
|
}
|
|
}
|
|
#endif |