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