Class BuildInfoAttribute
Attribute declaring information about a build.
Namespace: SuperOffice.License
Assembly: SoCore.dll
Syntax
public class BuildInfoAttribute : Attribute
Constructors
BuildInfoAttribute(String, String, String, String, String)
Constructor for attribute describing information about the build.
Declaration
public BuildInfoAttribute(string assemblyVersion, string fileVersion, string semanticVersion, string branchName, string buildLabel)
Parameters
Type | Name | Description |
---|---|---|
String | assemblyVersion | |
String | fileVersion | |
String | semanticVersion | |
String | branchName | Name of the branch the module is built from. |
String | buildLabel | Build label for the module. |
Properties
AssemblyVersion
AssemblyVersion generated from the build system
Declaration
public string AssemblyVersion { get; }
Property Value
Type | Description |
---|---|
String |
BranchName
Name of the branch the module is built from.
Declaration
public string BranchName { get; }
Property Value
Type | Description |
---|---|
String |
BuildDate
Date of the build.
Declaration
public DateTime BuildDate { get; }
Property Value
Type | Description |
---|---|
DateTime |
BuildLabel
Build label for the module.
Declaration
public string BuildLabel { get; }
Property Value
Type | Description |
---|---|
String |
FileVersion
FileVersion generated from the build system.
Declaration
public string FileVersion { get; }
Property Value
Type | Description |
---|---|
String |
SemanticVersion
Semantic version of NetServer.
Declaration
public string SemanticVersion { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ParseBuildDate(String)
"Release_10.1.1_2022.03.23-10" -> 2022.03.23 "8122.MACHINE" -> 2022.03.23 (8122 is days since epoch 2000-1-1)
Declaration
public static DateTime ParseBuildDate(string buildLabel)
Parameters
Type | Name | Description |
---|---|---|
String | buildLabel | "Release_10.1.1_2022.03.23-10" |
Returns
Type | Description |
---|---|
DateTime | date found in string |
Extension Methods
EnumUtil.MapEnums<From, To>(From)