7 writes to Name
Microsoft.Build (1)
Construction\ProjectTargetElement.cs (1)
408return new ProjectTargetElement(element, containingProject) { Name = name };
Microsoft.Build.Engine.OM.UnitTests (6)
Construction\ConstructionEditing_Tests.cs (1)
2711element.Name = "t2";
Construction\ProjectTargetElement_Tests.cs (1)
223target.Name = "t2";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
181newTarget1.View.Name = NewTargetRenamed; 185newTarget1.Real.Name = NewTargetRenamed.Ver(2); 192newTarget1.VerifySetter(NewTargetName, (t) => t.Name, (t, v) => t.Name = v);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTargetElementLink.cs (1)
28public string Name { get => this.TargetXml.Name; set => this.TargetXml.Name = value; }
23 references to Name
Microsoft.Build (7)
Construction\ProjectTargetElement.cs (1)
432return owner.CreateTargetElement(Name);
Evaluation\Evaluator.cs (5)
584targetElement.Name, 751_data.DefaultTargets.Add(_targetElements[0].Name); 1035string targetName = targetElement.Name; 1072beforeTargetsForTarget.Add(new TargetSpecification(targetElement.Name, targetElement.BeforeTargetsLocation)); 1095afterTargetsForTarget.Add(new TargetSpecification(targetElement.Name, targetElement.AfterTargetsLocation));
ObjectModelRemoting\ConstructionObjectLinks\ProjectTargetElementLink.cs (1)
17/// Access to remote <see cref="ProjectTargetElement.Name"/>.
Microsoft.Build.Engine.OM.UnitTests (16)
Construction\ProjectTargetElement_Tests.cs (1)
225Assert.Equal("t2", target.Name);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
801Assert.Equal(realXml.Name, viewXml.Name);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (12)
97xmlPair.Add2NewChildrenWithVerify<ProjectTargetElement>("NewTarget", (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n), out var newTarget1, out var newTarget2); 148var newTarget1 = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, NewTargetName, (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n)); 182Assert.Empty(xmlPair.QueryChildrenWithValidation<ProjectTargetElement>((t) => string.Equals(t.Name, NewTargetName))); 183newTarget1.VerifySame(xmlPair.QuerySingleChildrenWithValidation<ProjectTargetElement>((t) => string.Equals(t.Name, NewTargetRenamed))); 186Assert.Empty(xmlPair.QueryChildrenWithValidation<ProjectTargetElement>((t) => string.Equals(t.Name, NewTargetRenamed))); 187Assert.Empty(xmlPair.QueryChildrenWithValidation<ProjectTargetElement>((t) => string.Equals(t.Name, NewTargetName))); 189newTarget1.VerifySame(xmlPair.QuerySingleChildrenWithValidation<ProjectTargetElement>((t) => string.Equals(t.Name, NewTargetRenamed.Ver(2)))); 192newTarget1.VerifySetter(NewTargetName, (t) => t.Name, (t, v) => t.Name = v); 223var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n)); 319var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n)); 642var target = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "NewTarget", (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n)); 777var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.AddTarget(n), (t, n) => string.Equals(t.Name, n));
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTargetElementLink.cs (1)
28public string Name { get => this.TargetXml.Name; set => this.TargetXml.Name = value; }