2 writes to Targets
Microsoft.Build (2)
Definition\Project.cs (2)
4274Targets = new RetrievableEntryHashSet<ProjectTargetInstance>(StringComparer.OrdinalIgnoreCase); 4348Targets = candidate;
12 references to Targets
Microsoft.Build (12)
Definition\Project.cs (11)
2303if (_data.Targets == null) 2308return new ObjectModel.ReadOnlyDictionary<string, ProjectTargetInstance>(_data.Targets); 4335Targets.MakeReadOnly(); 4339Targets.TrimExcess(); 4340s_typicalTargetsCollection = new WeakReference<RetrievableEntryHashSet<ProjectTargetInstance>>(Targets); 4345if (s_typicalTargetsCollection.TryGetTarget(out RetrievableEntryHashSet<ProjectTargetInstance> candidate) && candidate.EntriesAreReferenceEquals(Targets)) 4354if (Targets.Count > 0) 4356Targets.TrimExcess(); 4357s_typicalTargetsCollection.SetTarget(Targets); 4469Targets.TryGetValue(targetName, out ProjectTargetInstance target); 4478Targets[target.Name] = target;
Instance\ProjectInstance.cs (1)
664this.CreateTargetsSnapshot(data.Targets, data.DefaultTargets, data.InitialTargets, data.BeforeTargets, data.AfterTargets);