Table of Contents

Class AssemblyAttributes

Namespace
Acuit.Pinpoint.Common
Assembly
Acuit.Pinpoint.Common.dll

A helper class for accessing assembly attributes for an assembly.

public class AssemblyAttributes
Inheritance
AssemblyAttributes
Inherited Members

Constructors

AssemblyAttributes(Assembly)

Initializes a new instance of the AssemblyAttributes class.

public AssemblyAttributes(Assembly assembly)

Parameters

assembly Assembly

The assembly from which to access attributes.

Properties

Gets the Copyright value from the AssemblyCopyrightAttribute, or null if the attribute does not exist.

public string Copyright { get; }

Property Value

string

CopyrightForConsole

Gets the Copyright value from the AssemblyCopyrightAttribute, formatted for display to the console (copyright symbols changed to "(c)"), or null if the attribute does not exist.

public string CopyrightForConsole { get; }

Property Value

string

Description

Gets the Description value from the AssemblyDescriptionAttribute, or null if the attribute does not exist.

public string Description { get; }

Property Value

string

Entry

Gets the helper for accessing the entry assembly attributes.

public static AssemblyAttributes Entry { get; }

Property Value

AssemblyAttributes

FileVersion

Gets the Version value from the AssemblyFileVersionAttribute, or null if the attribute does not exist.

public string FileVersion { get; }

Property Value

string

InformationalVersion

Gets the InformationalVersion value from the AssemblyInformationalVersionAttribute, or null if the attribute does not exist.

public string InformationalVersion { get; }

Property Value

string

Version

Gets a version for display.

public string Version { get; }

Property Value

string

Remarks

The version will be determined as follows:

  1. If AssemblyInformationalVersionAttribute exists, that value will be returned.
  2. Otherwise, if AssemblyFileVersionAttribute exists, that value will be returned.
  3. Otherwise, the version from the assembly's long name will be returned.

Methods

Executing()

Gets the helper for accessing the executing assembly attributes.

public static AssemblyAttributes Executing()

Returns

AssemblyAttributes

The helper for accessing the executing assembly attributes.