From b691db3c7cf573ff7c64f927c74ae3fc8c247709 Mon Sep 17 00:00:00 2001 From: Atsushi Kanamori Date: Thu, 23 Mar 2017 06:54:08 -0700 Subject: [PATCH] Move IReflect.cs to shared partition. (dotnet/coreclr#3074) Split AssemblyAttributes.cs into properly named files. Commit migrated from https://github.com/dotnet/coreclr/commit/08f09d185cdd213ef60702f9d9be1a2a7a123ad8 --- .../shared/System.Private.CoreLib.Shared.projitems | 20 +- .../Reflection/AssemblyAlgorithmIdAttribute.cs | 27 +++ .../shared/System/Reflection/AssemblyAttributes.cs | 259 --------------------- .../System/Reflection/AssemblyCompanyAttribute.cs | 18 ++ .../Reflection/AssemblyConfigurationAttribute.cs | 18 ++ .../Reflection/AssemblyCopyrightAttribute.cs | 18 ++ .../System/Reflection/AssemblyCultureAttribute.cs | 18 ++ .../Reflection/AssemblyDefaultAliasAttribute.cs | 18 ++ .../Reflection/AssemblyDelaySignAttribute.cs | 18 ++ .../Reflection/AssemblyDescriptionAttribute.cs | 18 ++ .../Reflection/AssemblyFileVersionAttribute.cs | 20 ++ .../System/Reflection/AssemblyFlagsAttribute.cs | 43 ++++ .../AssemblyInformationalVersionAttribute.cs | 18 ++ .../System/Reflection/AssemblyKeyFileAttribute.cs | 18 ++ .../System/Reflection/AssemblyKeyNameAttribute.cs | 18 ++ .../System/Reflection/AssemblyMetadataAttribute.cs | 21 ++ .../System/Reflection/AssemblyProductAttribute.cs | 18 ++ .../Reflection/AssemblySignatureKeyAttribute.cs | 21 ++ .../System/Reflection/AssemblyTitleAttribute.cs | 18 ++ .../Reflection/AssemblyTrademarkAttribute.cs | 18 ++ .../System/Reflection/AssemblyVersionAttribute.cs | 18 ++ 21 files changed, 403 insertions(+), 260 deletions(-) create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAlgorithmIdAttribute.cs delete mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAttributes.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCompanyAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyConfigurationAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCopyrightAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCultureAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDefaultAliasAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDelaySignAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDescriptionAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFileVersionAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFlagsAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyInformationalVersionAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyFileAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyNameAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyMetadataAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyProductAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblySignatureKeyAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTitleAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTrademarkAttribute.cs create mode 100644 src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyVersionAttribute.cs diff --git a/src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems b/src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems index 57bd169..ac63d9a 100644 --- a/src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems @@ -160,9 +160,27 @@ - + + + + + + + + + + + + + + + + + + + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAlgorithmIdAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAlgorithmIdAttribute.cs new file mode 100644 index 0000000..fe24f35 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAlgorithmIdAttribute.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Configuration.Assemblies; + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyAlgorithmIdAttribute : Attribute + { + public AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm algorithmId) + { + AlgorithmId = (uint)algorithmId; + } + + [CLSCompliant(false)] + public AssemblyAlgorithmIdAttribute(uint algorithmId) + { + AlgorithmId = algorithmId; + } + + [CLSCompliant(false)] + public uint AlgorithmId { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAttributes.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAttributes.cs deleted file mode 100644 index 1554403..0000000 --- a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyAttributes.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Configuration.Assemblies; - -namespace System.Reflection -{ - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyCopyrightAttribute : Attribute - { - public AssemblyCopyrightAttribute(string copyright) - { - Copyright = copyright; - } - - public string Copyright { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyTrademarkAttribute : Attribute - { - public AssemblyTrademarkAttribute(string trademark) - { - Trademark = trademark; - } - - public string Trademark { get; } - } - - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyProductAttribute : Attribute - { - public AssemblyProductAttribute(string product) - { - Product = product; - } - - public string Product { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyCompanyAttribute : Attribute - { - public AssemblyCompanyAttribute(string company) - { - Company = company; - } - - public string Company { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDescriptionAttribute : Attribute - { - public AssemblyDescriptionAttribute(string description) - { - Description = description; - } - - public string Description { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyTitleAttribute : Attribute - { - public AssemblyTitleAttribute(string title) - { - Title = title; - } - - public string Title { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyConfigurationAttribute : Attribute - { - public AssemblyConfigurationAttribute(string configuration) - { - Configuration = configuration; - } - - public string Configuration { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDefaultAliasAttribute : Attribute - { - public AssemblyDefaultAliasAttribute(string defaultAlias) - { - DefaultAlias = defaultAlias; - } - - public string DefaultAlias { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyInformationalVersionAttribute : Attribute - { - public AssemblyInformationalVersionAttribute(string informationalVersion) - { - InformationalVersion = informationalVersion; - } - - public string InformationalVersion { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyFileVersionAttribute : Attribute - { - public AssemblyFileVersionAttribute(string version) - { - if (version == null) - throw new ArgumentNullException(nameof(version)); - Version = version; - } - - public string Version { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyCultureAttribute : Attribute - { - public AssemblyCultureAttribute(string culture) - { - Culture = culture; - } - - public string Culture { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyVersionAttribute : Attribute - { - public AssemblyVersionAttribute(string version) - { - Version = version; - } - - public string Version { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyKeyFileAttribute : Attribute - { - public AssemblyKeyFileAttribute(string keyFile) - { - KeyFile = keyFile; - } - - public string KeyFile { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDelaySignAttribute : Attribute - { - public AssemblyDelaySignAttribute(bool delaySign) - { - DelaySign = delaySign; - } - - public bool DelaySign { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyAlgorithmIdAttribute : Attribute - { - public AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm algorithmId) - { - AlgorithmId = (uint)algorithmId; - } - - [CLSCompliant(false)] - public AssemblyAlgorithmIdAttribute(uint algorithmId) - { - AlgorithmId = algorithmId; - } - - [CLSCompliant(false)] - public uint AlgorithmId { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyFlagsAttribute : Attribute - { - private AssemblyNameFlags _flags; - - [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] - [CLSCompliant(false)] - public AssemblyFlagsAttribute(uint flags) - { - _flags = (AssemblyNameFlags)flags; - } - - [Obsolete("This property has been deprecated. Please use AssemblyFlags instead. http://go.microsoft.com/fwlink/?linkid=14202")] - [CLSCompliant(false)] - public uint Flags - { - get { return (uint)_flags; } - } - - public int AssemblyFlags - { - get { return (int)_flags; } - } - - [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] - public AssemblyFlagsAttribute(int assemblyFlags) - { - _flags = (AssemblyNameFlags)assemblyFlags; - } - - public AssemblyFlagsAttribute(AssemblyNameFlags assemblyFlags) - { - _flags = assemblyFlags; - } - } - - [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] - public sealed class AssemblyMetadataAttribute : Attribute - { - public AssemblyMetadataAttribute(string key, string value) - { - Key = key; - Value = value; - } - - public string Key { get; } - - public string Value { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)] - public sealed class AssemblySignatureKeyAttribute : Attribute - { - public AssemblySignatureKeyAttribute(string publicKey, string countersignature) - { - PublicKey = publicKey; - Countersignature = countersignature; - } - - public string PublicKey { get; } - - public string Countersignature { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyKeyNameAttribute : Attribute - { - public AssemblyKeyNameAttribute(string keyName) - { - KeyName = keyName; - } - - public string KeyName { get; } - } -} - diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCompanyAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCompanyAttribute.cs new file mode 100644 index 0000000..d986db6 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCompanyAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyCompanyAttribute : Attribute + { + public AssemblyCompanyAttribute(string company) + { + Company = company; + } + + public string Company { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyConfigurationAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyConfigurationAttribute.cs new file mode 100644 index 0000000..195c4d0 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyConfigurationAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyConfigurationAttribute : Attribute + { + public AssemblyConfigurationAttribute(string configuration) + { + Configuration = configuration; + } + + public string Configuration { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCopyrightAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCopyrightAttribute.cs new file mode 100644 index 0000000..e50e199 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCopyrightAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyCopyrightAttribute : Attribute + { + public AssemblyCopyrightAttribute(string copyright) + { + Copyright = copyright; + } + + public string Copyright { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCultureAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCultureAttribute.cs new file mode 100644 index 0000000..e31c6f9 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyCultureAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyCultureAttribute : Attribute + { + public AssemblyCultureAttribute(string culture) + { + Culture = culture; + } + + public string Culture { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDefaultAliasAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDefaultAliasAttribute.cs new file mode 100644 index 0000000..ced35ed --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDefaultAliasAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyDefaultAliasAttribute : Attribute + { + public AssemblyDefaultAliasAttribute(string defaultAlias) + { + DefaultAlias = defaultAlias; + } + + public string DefaultAlias { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDelaySignAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDelaySignAttribute.cs new file mode 100644 index 0000000..eae2cf6 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDelaySignAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyDelaySignAttribute : Attribute + { + public AssemblyDelaySignAttribute(bool delaySign) + { + DelaySign = delaySign; + } + + public bool DelaySign { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDescriptionAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDescriptionAttribute.cs new file mode 100644 index 0000000..50f57c9 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyDescriptionAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyDescriptionAttribute : Attribute + { + public AssemblyDescriptionAttribute(string description) + { + Description = description; + } + + public string Description { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFileVersionAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFileVersionAttribute.cs new file mode 100644 index 0000000..b5face6 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFileVersionAttribute.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyFileVersionAttribute : Attribute + { + public AssemblyFileVersionAttribute(string version) + { + if (version == null) + throw new ArgumentNullException(nameof(version)); + Version = version; + } + + public string Version { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFlagsAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFlagsAttribute.cs new file mode 100644 index 0000000..1034133 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyFlagsAttribute.cs @@ -0,0 +1,43 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyFlagsAttribute : Attribute + { + private AssemblyNameFlags _flags; + + [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] + [CLSCompliant(false)] + public AssemblyFlagsAttribute(uint flags) + { + _flags = (AssemblyNameFlags)flags; + } + + [Obsolete("This property has been deprecated. Please use AssemblyFlags instead. http://go.microsoft.com/fwlink/?linkid=14202")] + [CLSCompliant(false)] + public uint Flags + { + get { return (uint)_flags; } + } + + public int AssemblyFlags + { + get { return (int)_flags; } + } + + [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] + public AssemblyFlagsAttribute(int assemblyFlags) + { + _flags = (AssemblyNameFlags)assemblyFlags; + } + + public AssemblyFlagsAttribute(AssemblyNameFlags assemblyFlags) + { + _flags = assemblyFlags; + } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyInformationalVersionAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyInformationalVersionAttribute.cs new file mode 100644 index 0000000..915b973 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyInformationalVersionAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyInformationalVersionAttribute : Attribute + { + public AssemblyInformationalVersionAttribute(string informationalVersion) + { + InformationalVersion = informationalVersion; + } + + public string InformationalVersion { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyFileAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyFileAttribute.cs new file mode 100644 index 0000000..9f7387d --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyFileAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyKeyFileAttribute : Attribute + { + public AssemblyKeyFileAttribute(string keyFile) + { + KeyFile = keyFile; + } + + public string KeyFile { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyNameAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyNameAttribute.cs new file mode 100644 index 0000000..4cf5175 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyKeyNameAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyKeyNameAttribute : Attribute + { + public AssemblyKeyNameAttribute(string keyName) + { + KeyName = keyName; + } + + public string KeyName { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyMetadataAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyMetadataAttribute.cs new file mode 100644 index 0000000..de9f635 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyMetadataAttribute.cs @@ -0,0 +1,21 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] + public sealed class AssemblyMetadataAttribute : Attribute + { + public AssemblyMetadataAttribute(string key, string value) + { + Key = key; + Value = value; + } + + public string Key { get; } + + public string Value { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyProductAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyProductAttribute.cs new file mode 100644 index 0000000..43cb62d --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyProductAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyProductAttribute : Attribute + { + public AssemblyProductAttribute(string product) + { + Product = product; + } + + public string Product { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblySignatureKeyAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblySignatureKeyAttribute.cs new file mode 100644 index 0000000..e6ec8af --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblySignatureKeyAttribute.cs @@ -0,0 +1,21 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)] + public sealed class AssemblySignatureKeyAttribute : Attribute + { + public AssemblySignatureKeyAttribute(string publicKey, string countersignature) + { + PublicKey = publicKey; + Countersignature = countersignature; + } + + public string PublicKey { get; } + + public string Countersignature { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTitleAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTitleAttribute.cs new file mode 100644 index 0000000..26d7a2e --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTitleAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyTitleAttribute : Attribute + { + public AssemblyTitleAttribute(string title) + { + Title = title; + } + + public string Title { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTrademarkAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTrademarkAttribute.cs new file mode 100644 index 0000000..1d3edf5 --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyTrademarkAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyTrademarkAttribute : Attribute + { + public AssemblyTrademarkAttribute(string trademark) + { + Trademark = trademark; + } + + public string Trademark { get; } + } +} + diff --git a/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyVersionAttribute.cs b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyVersionAttribute.cs new file mode 100644 index 0000000..b3557ba --- /dev/null +++ b/src/coreclr/src/mscorlib/shared/System/Reflection/AssemblyVersionAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Reflection +{ + [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] + public sealed class AssemblyVersionAttribute : Attribute + { + public AssemblyVersionAttribute(string version) + { + Version = version; + } + + public string Version { get; } + } +} + -- 2.7.4