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