Class BuildInformation
Retrieves build information encapsulated into a module in the form of an embedded resource
Inheritance
System.Object
BuildInformation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Environment
Assembly: NFX.dll
Syntax
[Serializable]
public class BuildInformation
Constructors
BuildInformation(Assembly, String, Boolean)
Creates and instance of BuildInformation class from the specified resource path in particular assembly. If assembly is null then BuildInformation for the whole framework is returned. If Path is null then the first found BUILD info resource is used from the specified assembly
Declaration
public BuildInformation(Assembly assembly, string path = null, bool throwError = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Assembly | assembly | |
| System.String | path | |
| System.Boolean | throwError |
Fields
BUILD_INFO_RESOURCE
Declaration
public const string BUILD_INFO_RESOURCE = "BUILD_INFO.txt"
Field Value
| Type | Description |
|---|---|
| System.String |
FRAMEWORK_BUILD_INFO_PATH
Declaration
public const string FRAMEWORK_BUILD_INFO_PATH = "NFX.BUILD_INFO.txt"
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
AssemblyName
Rertuns assembly name that this information was obtained from
Declaration
public string AssemblyName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
BuildSeed
Returns random number assigned to a build. It is NOT guaranteed to be unique
Declaration
public int BuildSeed { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Computer
A name of the computer that performed build
Declaration
public string Computer { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
DateStampUTC
Date and time stamp when build was performed
Declaration
public DateTime DateStampUTC { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
ForFramework
Return framework build information
Declaration
public static BuildInformation ForFramework { get; }
Property Value
| Type | Description |
|---|---|
| BuildInformation |
OS
OS name
Declaration
public string OS { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
OSVer
OS version name
Declaration
public string OSVer { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
User
a name of user that build session was logged under
Declaration
public string User { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()