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