11 instantiations of TargetSpecification
Microsoft.Build (7)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
156
targets.Add(new
TargetSpecification
(targetName.name, targetExists ? targetInstance.Location : _projectInstance.ProjectFileLocation, targetName.reason));
276
targetToPush.Add(new
TargetSpecification
(targets[i], taskLocation));
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
409
dependencyTargets.Add(new
TargetSpecification
(dependencyTargetName, _target.DependsOnTargetsLocation));
723
allErrorTargets.Add(new
TargetSpecification
(errorTargetName, errorTargetInstance.ExecuteTargetsLocation));
BackEnd\Components\RequestBuilder\TargetSpecification.cs (1)
64
var instance = new
TargetSpecification
();
Evaluation\Evaluator.cs (2)
1072
beforeTargetsForTarget.Add(new
TargetSpecification
(targetElement.Name, targetElement.BeforeTargetsLocation));
1095
afterTargetsForTarget.Add(new
TargetSpecification
(targetElement.Name, targetElement.AfterTargetsLocation));
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TargetEntry_Tests.cs (4)
100
TargetEntry entry = new TargetEntry(requestEntry, this, new
TargetSpecification
("Empty", null), null, null, TargetBuiltReason.None, _host, null, false);
116
TargetEntry entry = new TargetEntry(requestEntry, this, new
TargetSpecification
("Empty", null), lookup, null, TargetBuiltReason.None, null, null, false);
1031
TargetEntry entry = new TargetEntry(requestEntry, this, new
TargetSpecification
(targetName, project.Targets[targetName].Location), lookup, null, TargetBuiltReason.None, _host, null, false);
1047
TargetEntry entry = new TargetEntry(requestEntry, this, new
TargetSpecification
(target, project.Targets[target].Location), baseEntry.Lookup, baseEntry, TargetBuiltReason.None, _host, null, false);
82 references to TargetSpecification
Microsoft.Build (61)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (12)
144
List<
TargetSpecification
> targets = new List<
TargetSpecification
>(targetNames.Length);
246
List<
TargetSpecification
> targetToPush = new List<
TargetSpecification
>();
431
IList<
TargetSpecification
> afterTargets = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunAfter(currentTargetEntry.Name);
446
IList<
TargetSpecification
> dependencies = currentTargetEntry.GetDependencies(_projectLoggingContext);
452
IList<
TargetSpecification
> beforeTargets = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunBefore(currentTargetEntry.Name);
655
private async Task<bool> PushTargets(IList<
TargetSpecification
> targets, TargetEntry parentTargetEntry, Lookup baseLookup, bool addAsErrorTarget, bool stopProcessingOnCompletion, TargetBuiltReason buildReason)
662
TargetSpecification
targetSpecification = targets[i];
797
IList<
TargetSpecification
> targetsWhichRunAfter = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunAfter(targetToCheck);
799
foreach (
TargetSpecification
afterTarget in targetsWhichRunAfter)
826
private bool HasCircularDependenceInTargets(TargetEntry parentTargetEntry,
TargetSpecification
targetSpecification, out List<string> circularDependenceChain)
BackEnd\Components\RequestBuilder\TargetEntry.cs (9)
84
private
TargetSpecification
_targetSpecification;
171
TargetSpecification
targetSpecification,
338
internal List<
TargetSpecification
> GetDependencies(ProjectLoggingContext projectLoggingContext)
401
return new List<
TargetSpecification
>();
405
List<
TargetSpecification
> dependencyTargets = new List<
TargetSpecification
>();
697
internal List<
TargetSpecification
> GetErrorTargets(ProjectLoggingContext projectLoggingContext)
702
List<
TargetSpecification
> allErrorTargets = new List<
TargetSpecification
>(_target.OnErrorChildren.Count);
BackEnd\Components\RequestBuilder\TargetSpecification.cs (2)
62
internal static
TargetSpecification
FactoryForDeserialization(ITranslator translator)
64
var
instance = new TargetSpecification();
Definition\Project.cs (2)
4083
public IDictionary<string, List<
TargetSpecification
>> BeforeTargets { get; set; }
4088
public IDictionary<string, List<
TargetSpecification
>> AfterTargets { get; set; }
Evaluation\Evaluator.cs (10)
754
Dictionary<string, List<
TargetSpecification
>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<
TargetSpecification
>>(StringComparer.OrdinalIgnoreCase);
755
Dictionary<string, List<
TargetSpecification
>> targetsWhichRunAfterByTarget = new Dictionary<string, List<
TargetSpecification
>>(StringComparer.OrdinalIgnoreCase);
1054
private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<
TargetSpecification
>> targetsWhichRunBeforeByTarget, Dictionary<string, List<
TargetSpecification
>> targetsWhichRunAfterByTarget)
1065
List<
TargetSpecification
> beforeTargetsForTarget;
1068
beforeTargetsForTarget = new List<
TargetSpecification
>();
1088
List<
TargetSpecification
> afterTargetsForTarget;
1091
afterTargetsForTarget = new List<
TargetSpecification
>();
Evaluation\IEvaluatorData.cs (2)
124
IDictionary<string, List<
TargetSpecification
>> BeforeTargets
133
IDictionary<string, List<
TargetSpecification
>> AfterTargets
Evaluation\LazyItemEvaluator.EvaluatorData.cs (2)
56
public IDictionary<string, List<
TargetSpecification
>> AfterTargets
69
public IDictionary<string, List<
TargetSpecification
>> BeforeTargets
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
141
public IDictionary<string, List<
TargetSpecification
>> BeforeTargets { get => _wrapped.BeforeTargets; set => _wrapped.BeforeTargets = value; }
142
public IDictionary<string, List<
TargetSpecification
>> AfterTargets { get => _wrapped.AfterTargets; set => _wrapped.AfterTargets = value; }
Instance\ProjectInstance.cs (20)
182
private IDictionary<string, List<
TargetSpecification
>> _beforeTargets;
183
private IDictionary<string, List<
TargetSpecification
>> _afterTargets;
561
thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<
TargetSpecification
>>();
562
thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<
TargetSpecification
>>();
1431
IDictionary<string, List<
TargetSpecification
>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets
1441
IDictionary<string, List<
TargetSpecification
>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets
2463
translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<
TargetSpecification
>>(count));
2464
translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<
TargetSpecification
>>(count));
2477
private static void TranslatorForTargetSpecificDictionaryValue(ITranslator translator, ref List<
TargetSpecification
> value)
2479
translator.Translate(ref value,
TargetSpecification
.FactoryForDeserialization);
2740
internal IList<
TargetSpecification
> GetTargetsWhichRunBefore(string target)
2742
List<
TargetSpecification
> beforeTargetsForTarget;
2749
return Array.Empty<
TargetSpecification
>();
2757
internal IList<
TargetSpecification
> GetTargetsWhichRunAfter(string target)
2759
List<
TargetSpecification
> afterTargetsForTarget;
2766
return Array.Empty<
TargetSpecification
>();
3208
IDictionary<string, List<
TargetSpecification
>> beforeTargets,
3209
IDictionary<string, List<
TargetSpecification
>> afterTargets)
3219
IDictionary<string, List<
TargetSpecification
>> beforeTargets,
3220
IDictionary<string, List<
TargetSpecification
>> afterTargets)
Microsoft.Build.Engine.UnitTests (21)
BackEnd\TargetEntry_Tests.cs (15)
172
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
181
IEnumerator<
TargetSpecification
> depsEnum = deps.GetEnumerator();
214
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
259
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
326
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
327
foreach (
TargetSpecification
target in deps)
359
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
466
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
493
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
511
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
532
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
553
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
574
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
595
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
616
ICollection<
TargetSpecification
> deps = entry.GetDependencies(GetProjectLoggingContext(entry.RequestEntry));
TestComparers\ProjectInstanceModelTestComparers.cs (6)
68
private void AssertTargetSpecificationPairsEqual(KeyValuePair<string, List<
TargetSpecification
>> xPair, KeyValuePair<string, List<
TargetSpecification
>> yPair)
260
internal sealed class TargetSpecificationComparer : IEqualityComparer<
TargetSpecification
>
262
public bool Equals(
TargetSpecification
x,
TargetSpecification
y)
270
public int GetHashCode(
TargetSpecification
obj)