using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.DotNet.Cli.Build.Framework { public class BuildTarget { public string Name { get; } public string Source { get; } public IEnumerable Dependencies { get; } public IEnumerable> Conditions { get; } public Func Body { get; } public BuildTarget(string name, string source) : this(name, source, Enumerable.Empty(), Enumerable.Empty>(), null) { } public BuildTarget(string name, string source, IEnumerable dependencies) : this(name, source, dependencies, Enumerable.Empty>(), null) { } public BuildTarget( string name, string source, IEnumerable dependencies, IEnumerable> conditions, Func body) { Name = name; Source = source; Dependencies = dependencies; Conditions = conditions; Body = body; } } }