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