Class PackageDependency
Object for describing properties of package dependency
Inheritance
Namespace: BuildSystem.Package
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public class PackageDependency : Object
Constructors
PackageDependency()
Object for describing properties of package dependency
Declaration
public PackageDependency()
Fields
NodeCondition
Node key in JSON - value for Condition
Declaration
public const string NodeCondition = "condition"
Field Value
| Type | Description |
|---|---|
| string |
NodeId
Node key in JSON - value for Id
Declaration
public const string NodeId = "id"
Field Value
| Type | Description |
|---|---|
| string |
NodeIsVisible
Node key in JSON - value for IsVisible
Declaration
public const string NodeIsVisible = "is_visible"
Field Value
| Type | Description |
|---|---|
| string |
NodeOutDir
Node key in JSON - value for OutDir
Declaration
public const string NodeOutDir = "out_dir"
Field Value
| Type | Description |
|---|---|
| string |
NodeVersion
Node key in JSON - value for Version
Declaration
public const string NodeVersion = "version"
Field Value
| Type | Description |
|---|---|
| string |
Properties
Additional
Additional keys which don't have their own properties
Declaration
public Dictionary<string, string> Additional { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<,><string, string> |
Condition
Condition for restoring dependency
Declaration
public string Condition { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Package id
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsVisible
Package dependency is visible, when generating package
Declaration
public bool IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OutDir
Output folder for restoring dependency
Declaration
public string? OutDir { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProjectJsonPath
Dependency was created from project dependency, and this value shows path to json file with properties of this project
Declaration
public string? ProjectJsonPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProjectPath
Dependency was created from project dependency, and this value shows path to dependency project
Declaration
public string? ProjectPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Version of package
Declaration
public VersionProp Version { get; set; }
Property Value
| Type | Description |
|---|---|
| VersionProp |
Methods
EmptyValues()
Set values of private properties to default
Declaration
public void EmptyValues()
Equals(PackageDependency)
Flag that current object absolutely equal to another one. Equal dependencies should have same values of properties: Id, Version, OutDir and Condition
Declaration
public bool Equals(PackageDependency other)
Parameters
| Type | Name | Description |
|---|---|---|
| PackageDependency | other |
Returns
| Type | Description |
|---|---|
| bool |
IsSame(PackageDependency)
Flag that current object same to another one. Same dependencies should have same values of properties: Id and OutDir
Declaration
public bool IsSame(PackageDependency other)
Parameters
| Type | Name | Description |
|---|---|---|
| PackageDependency | other |
Returns
| Type | Description |
|---|---|
| bool |
ToString()
String representation of object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Update(JsonNode?, string)
Update self properties by reading JsonObject
Declaration
public void Update(JsonNode? jsonInfo, string relativeDir)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.Nodes.JsonNode | jsonInfo | JsonObject with properties |
| string | relativeDir | Directory which should be added to properties containing relative paths |
Update(XmlNode, string)
Update self properties by reading Xml
Declaration
public void Update(XmlNode xmlNode, string relativeDir)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Xml.XmlNode | xmlNode | JsonObject with properties |
| string | relativeDir | Directory which should be added to properties containing relative paths |