AssemblyFileVersionAttribute.cs 631 B

1234567891011121314151617181920
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Reflection
  5. {
  6. [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  7. public sealed class AssemblyFileVersionAttribute : Attribute
  8. {
  9. public AssemblyFileVersionAttribute(string version)
  10. {
  11. if (version == null)
  12. throw new ArgumentNullException(nameof(version));
  13. Version = version;
  14. }
  15. public string Version { get; }
  16. }
  17. }