Show / Hide Table of Contents

Class BuildInfo

Inheritance
System.Object
BuildInfo
Namespace: sttz.Trimmer
Assembly: Trimmer.dll
Syntax
[Serializable]
public class BuildInfo

Fields

| Improve this Doc View Source

buildGuid

Generated GUID to identify the build.

Declaration
public string buildGuid
Field Value
Type Description
System.String
| Improve this Doc View Source

buildTime

Build time as ISO 8601 date string.

Declaration
public string buildTime
Field Value
Type Description
System.String
| Improve this Doc View Source

DEFAULT_NAME

Default name of BuildInfo json files.

Declaration
public const string DEFAULT_NAME = "build.json"
Field Value
Type Description
System.String
| Improve this Doc View Source

profileGuid

GUID of the profile that was used to create the build.

Declaration
public string profileGuid
Field Value
Type Description
System.String
| Improve this Doc View Source

version

Version of the build.

Declaration
public Version version
Field Value
Type Description
Version

Properties

| Improve this Doc View Source

Current

Information about the current build.

Declaration
public static BuildInfo Current { get; set; }
Property Value
Type Description
BuildInfo

Methods

| Improve this Doc View Source

FromJson(String)

Create a BuildInfo instance from a JSON string.

Declaration
public static BuildInfo FromJson(string json)
Parameters
Type Name Description
System.String json
Returns
Type Description
BuildInfo
| Improve this Doc View Source

FromPath(String)

Load a BuildInfo from a given file path. The path can be a Unity build path and the build.json will be resolved automatically.

Declaration
public static BuildInfo FromPath(string path)
Parameters
Type Name Description
System.String path

Path to the build.json or a Unity build.

Returns
Type Description
BuildInfo
| Improve this Doc View Source

ToJson(Boolean)

Convert the info to a JSON string.

Declaration
public string ToJson(bool pretty = true)
Parameters
Type Name Description
System.Boolean pretty

Format the output for readability

Returns
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top © 2017 Adrian Stutz