54 references to Name
Microsoft.Build (18)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
66return taskInstance.Name;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (15)
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, 430MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 486MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 623_taskNode.Name, 652ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError", _taskNode.Name); 718ProjectErrorUtilities.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message); 749ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty); 816_taskNode.Name); 924_taskNode.Name); 934_taskNode.Name); 957taskLoggingContext.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)
481ProjectTaskElement taskElement = target.AddTask(taskInstance.Name);
Microsoft.Build.Engine.OM.UnitTests (3)
Instance\ProjectTargetInstance_Tests.cs (2)
38Assert.Equal("t1", ((ProjectTaskInstance)target.Children[0]).Name); 42Assert.Equal("t1", tasks[0].Name);
Instance\ProjectTaskInstance_Tests.cs (1)
28Assert.Equal("t1", task.Name);
Microsoft.Build.Engine.UnitTests (33)
BackEnd\MockTaskBuilder.cs (3)
102lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File)); 106lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File)); 109if (String.Equals(taskInstance.Name, "CallTarget", StringComparison.OrdinalIgnoreCase))
BackEnd\TargetBuilder_Tests.cs (1)
1552Assert.Equal(task.Name, tasks[currentTask]);
BackEnd\TargetEntry_Tests.cs (16)
226Assert.Equal("BazTask1", taskBuilder.ExecutedTasks[0].Name); 227Assert.Equal("BazTask2", taskBuilder.ExecutedTasks[1].Name); 236Assert.Equal("Baz2Task1", taskBuilder.ExecutedTasks[0].Name); 237Assert.Equal("Baz2Task2", taskBuilder.ExecutedTasks[1].Name); 238Assert.Equal("Baz2Task3", taskBuilder.ExecutedTasks[2].Name); 264Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].Name); 265Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].Name); 266Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].Name); 277Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].Name); 278Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].Name); 290Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].Name); 291Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].Name); 292Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].Name); 303Assert.Equal("ErrorTask1", taskBuilder.ExecutedTasks[0].Name); 304Assert.Equal("ErrorTask2", taskBuilder.ExecutedTasks[1].Name); 305Assert.Equal("ErrorTask3", taskBuilder.ExecutedTasks[2].Name);
Construction\SolutionProjectGenerator_Tests.cs (11)
1356if (String.Equals(childNode.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1541task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1545task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1549task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1553task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1558task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1562task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1566task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 1570task => String.Equals(task.Name, "MSBuild", StringComparison.OrdinalIgnoreCase)) 2553Assert.Equal("MyTask", task.Name); 2613.Name.ShouldBe("Warning");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
318Assert.Equal(x.Name, y.Name);