4 writes to DefaultTargets
Microsoft.Build (4)
Instance\ProjectInstance.cs (4)
549
this.
DefaultTargets
= new List<string>();
740
this.
DefaultTargets
= new List<string>(that.DefaultTargets);
1423
DefaultTargets
= value;
3222
DefaultTargets
= defaultTargets == null ? new List<string>(0) : new List<string>(defaultTargets);
22 references to DefaultTargets
Microsoft.Build (12)
BackEnd\Shared\BuildRequestConfiguration.cs (3)
185
_projectDefaultTargets = data.ProjectInstance.
DefaultTargets
;
222
_projectDefaultTargets = instance.
DefaultTargets
;
416
ProjectDefaultTargets = _project.
DefaultTargets
;
Graph\GraphBuilder.cs (1)
688
return string.Join(";", reference.ProjectInstance.
DefaultTargets
);
Graph\ProjectGraph.cs (4)
624
var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.
DefaultTargets
);
639
var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.
DefaultTargets
);
666
ProjectGraphBuildRequest entryEdge = new(node, ImmutableList.CreateRange(node.ProjectInstance.
DefaultTargets
));
737
referenceNode.ProjectInstance.
DefaultTargets
,
Instance\ProjectInstance.cs (4)
550
this.
DefaultTargets
.Add("Build");
740
this.DefaultTargets = new List<string>(that.
DefaultTargets
);
1418
return
DefaultTargets
;
2280
rootElement.DefaultTargets = String.Join(";",
DefaultTargets
);
Microsoft.Build.Engine.UnitTests (10)
Evaluation\Evaluator_Tests.cs (3)
2340
Assert.Equal(2, instance.
DefaultTargets
.Count);
2341
Assert.Equal("t", instance.
DefaultTargets
[0]);
2342
Assert.Equal("q", instance.
DefaultTargets
[1]);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
474
targetListsPerNode?[node] != null ? targetListsPerNode?[node] : node.ProjectInstance.
DefaultTargets
);
Instance\ProjectInstance_Internal_Tests.cs (4)
121
project.
DefaultTargets
.ShouldBe(new string[] { "d0a", "d0b" });
147
project.
DefaultTargets
.ShouldBe(new string[] { "d0a;d0b" });
446
p.
DefaultTargets
.ShouldBe(new string[] { "dt" });
517
second.
DefaultTargets
.ShouldBe(new string[] { "dt" });
TestComparers\ProjectInstanceModelTestComparers.cs (2)
44
Assert.Equal(x.
DefaultTargets
, y.
DefaultTargets
);