Class ProjectDependency
Dependency for another project
Inheritance
Namespace: BuildSystem.Project.Dependency
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public class ProjectDependency : Object
Constructors
ProjectDependency()
Object for describing properties of package dependency
Declaration
public ProjectDependency()
ProjectDependency(ProjectDependency)
Object for describing properties of package dependency
Declaration
public ProjectDependency(ProjectDependency source)
Parameters
Type | Name | Description |
---|---|---|
ProjectDependency | source |
Fields
NodeAffectedGroups
Node key in JSON - value for AffectedGroups
Declaration
public const string NodeAffectedGroups = "affected_groups"
Field Value
Type | Description |
---|---|
string |
NodeExplicitRestore
Node key in JSON - value for CopyBuildResults
Declaration
public const string NodeExplicitRestore = "explicit_restore"
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 |
NodeJsonPath
Node key in JSON - value for JsonPath
Declaration
public const string NodeJsonPath = "path"
Field Value
Type | Description |
---|---|
string |
Properties
Additionals
Additional keys which don't have their own properties
Declaration
public Dictionary<string, string> Additionals { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<,><string, string> |
AffectedGroups
Filter for dependencies which should be added to the package
Declaration
public List<string> AffectedGroups { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<><string> |
CopyBuildResults
Should be build results of dependent project into current one or not
Declaration
public bool CopyBuildResults { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsTransitive
Dependency is transitive or not. Transitive dependency is dependency of dependency
Declaration
public bool IsTransitive { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsVisible
Project dependency should be added to generating package
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
bool |
JsonPath
Expression for value - path to .json file with properties of project
Declaration
public string JsonPath { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
EmptyValues()
Set values of private properties to default
Declaration
public void EmptyValues()
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 from .csproj
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 |