55 references to Name
Microsoft.Build (19)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
66
return taskInstance.
Name
;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (16)
167
_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name, _taskNode.
Name
);
308
_taskExecutionHost.InitializeForTask(taskHost, _targetLoggingContext, _buildRequestEntry.RequestConfiguration.Project, _taskNode.
Name
, _taskNode.Location, _taskHostObject, _continueOnError != ContinueOnError.ErrorAndStop,
430
MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.
Name
, taskLoggingContext.BuildEventContext.TaskId);
486
MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.
Name
, taskLoggingContext.BuildEventContext.TaskId);
623
_taskNode.
Name
,
652
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError", _taskNode.
Name
);
718
ProjectErrorUtilities.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.
Name
, e.Message);
749
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.
Name
, String.Empty);
802
using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.Name, _taskNode.
Name
, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.Project.PropertiesToBuildWith))
816
_taskNode.
Name
);
924
_taskNode.
Name
);
934
_taskNode.
Name
);
957
taskLoggingContext.LogComment(MessageImportance.Normal, "TaskReturnedFalseButDidNotLogError", _taskNode.
Name
);
964
_taskNode.
Name
);
972
_taskNode.
Name
);
1007
_taskNode.
Name
,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
660
_taskLoggingContext.LogFatalTaskError(e, new BuildEventFileInfo(_taskLocation), ((ProjectTaskInstance)_taskLoggingContext.Task).
Name
);
Instance\ProjectTargetInstance.cs (1)
481
ProjectTaskElement taskElement = target.AddTask(taskInstance.
Name
);
Microsoft.Build.Engine.OM.UnitTests (3)
Instance\ProjectTargetInstance_Tests.cs (2)
38
Assert.Equal("t1", ((ProjectTaskInstance)target.Children[0]).
Name
);
42
Assert.Equal("t1", tasks[0].
Name
);
Instance\ProjectTaskInstance_Tests.cs (1)
28
Assert.Equal("t1", task.
Name
);
Microsoft.Build.Engine.UnitTests (33)
BackEnd\MockTaskBuilder.cs (3)
102
lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.
Name
+ "_Item", "Item", task.Location.File));
106
lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.
Name
+ "_Item", "Item", task.Location.File));
109
if (String.Equals(taskInstance.
Name
, "CallTarget", StringComparison.OrdinalIgnoreCase))
BackEnd\TargetBuilder_Tests.cs (1)
1552
Assert.Equal(task.
Name
, tasks[currentTask]);
BackEnd\TargetEntry_Tests.cs (16)
226
Assert.Equal("BazTask1", taskBuilder.ExecutedTasks[0].
Name
);
227
Assert.Equal("BazTask2", taskBuilder.ExecutedTasks[1].
Name
);
236
Assert.Equal("Baz2Task1", taskBuilder.ExecutedTasks[0].
Name
);
237
Assert.Equal("Baz2Task2", taskBuilder.ExecutedTasks[1].
Name
);
238
Assert.Equal("Baz2Task3", taskBuilder.ExecutedTasks[2].
Name
);
264
Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].
Name
);
265
Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].
Name
);
266
Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].
Name
);
277
Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].
Name
);
278
Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].
Name
);
290
Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].
Name
);
291
Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].
Name
);
292
Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].
Name
);
303
Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].
Name
);
304
Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].
Name
);
305
Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].
Name
);
Construction\SolutionProjectGenerator_Tests.cs (11)
1356
if (String.Equals(childNode.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1541
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1545
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1549
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1553
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1558
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1562
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1566
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
1570
task => String.Equals(task.
Name
, "MSBuild", StringComparison.OrdinalIgnoreCase))
2553
Assert.Equal("MyTask", task.
Name
);
2613
.
Name
.ShouldBe("Warning");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
318
Assert.Equal(x.
Name
, y.
Name
);