1 instantiation of Target
XmlFileLogger (1)
ObjectModel\Project.cs (1)
156
Target result = _targetNameToTargetMap.GetOrAdd(targetName, key => new
Target
(key, e));
18 references to Target
XmlFileLogger (18)
ObjectModel\Build.cs (7)
89
var
target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId);
102
var
target = project.GetTargetById(taskCommandLineEventArgs.BuildEventContext.TargetId);
118
var
target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId);
135
var
target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId);
174
var
target = project.GetTargetById(taskStartedEventArgs.BuildEventContext.TargetId);
235
var
target = project.GetTargetById(targetFinishedEventArgs.BuildEventContext.TargetId);
257
var
target = project.GetTargetById(taskFinishedEventArgs.BuildEventContext.TargetId);
ObjectModel\Project.cs (9)
29
private readonly ConcurrentDictionary<string,
Target
> _targetNameToTargetMap = new ConcurrentDictionary<string,
Target
>(StringComparer.OrdinalIgnoreCase);
60
var
target = GetOrAddTargetByName(targetStartedEventArgs.TargetName, targetStartedEventArgs);
64
var
parentTarget = GetOrAddTargetByName(targetStartedEventArgs.ParentTarget);
79
public
Target
GetTargetById(int id)
93
foreach (
var
orphan in _targetNameToTargetMap.Values.Where(t => t.Id < 0))
109
WriteChildren<
Target
>(element);
154
private
Target
GetOrAddTargetByName(string targetName, TargetStartedEventArgs e = null)
156
Target
result = _targetNameToTargetMap.GetOrAdd(targetName, key => new Target(key, e));
ObjectModel\Target.cs (2)
45
WriteChildren<
Target
>(element);
53
public void AddChildTarget(
Target
target)