3 instantiations of ProjectTaskInstance
Microsoft.Build (2)
Evaluation\Evaluator.cs (1)
458ProjectTaskInstance task = new ProjectTaskInstance(taskElement, taskOutputs);
Instance\ProjectTargetInstance.cs (1)
545ProjectTaskInstance task = new ProjectTaskInstance(taskName, _location, condition ?? String.Empty, continueOnError ?? String.Empty, msbuildRuntime ?? String.Empty, msbuildArchitecture ?? String.Empty);
Microsoft.Build.Engine.UnitTests (1)
TestData\ProjectInstanceTestObjects.cs (1)
120return new ProjectTaskInstance(
57 references to ProjectTaskInstance
Microsoft.Build (23)
BackEnd\Components\Logging\TaskLoggingContext.cs (2)
63ProjectTaskInstance taskInstance = task as ProjectTaskInstance;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
88private ProjectTaskInstance _taskNode; 163_taskNode = taskInstance as ProjectTaskInstance;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
660_taskLoggingContext.LogFatalTaskError(e, new BuildEventFileInfo(_taskLocation), ((ProjectTaskInstance)_taskLoggingContext.Task).Name);
Construction\Solution\SolutionProjectGenerator.cs (6)
577private static ProjectTaskInstance AddErrorWarningMessageInstance( 592ProjectTaskInstance task = target.AddTask(elementType, condition, null); 1355ProjectTaskInstance task = target.AddTask("MSBuild", condition, String.Empty); 1386ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern("'%(ProjectReference.Identity)' == '" + GetMetaprojectName(project) + "'"), String.Empty); 1989ProjectTaskInstance task = target.AddTask("MSBuild", String.Empty, String.Empty); 2383ProjectTaskInstance toolsVersionErrorTask = AddErrorWarningMessageInstance(
Evaluation\Evaluator.cs (2)
424private static ProjectTaskInstance ReadTaskElement(ProjectTaskElement taskElement) 458ProjectTaskInstance task = new ProjectTaskInstance(taskElement, taskOutputs);
Instance\ProjectTargetInstance.cs (8)
331public ICollection<ProjectTaskInstance> Tasks 335return new ReadOnlyCollection<ProjectTaskInstance>(Children.OfType<ProjectTaskInstance>()); 479foreach (ProjectTaskInstance taskInstance in Tasks) 527internal ProjectTaskInstance AddTask(string taskName, string condition, string continueOnError) 529ProjectTaskInstance task = AddTask(taskName, condition, continueOnError, String.Empty, String.Empty); 542internal ProjectTaskInstance AddTask(string taskName, string condition, string continueOnError, string msbuildRuntime, string msbuildArchitecture) 545ProjectTaskInstance task = new ProjectTaskInstance(taskName, _location, condition ?? String.Empty, continueOnError ?? String.Empty, msbuildRuntime ?? String.Empty, msbuildArchitecture ?? String.Empty);
Instance\ProjectTaskInstance.cs (2)
418internal static new ProjectTaskInstance FactoryForDeserialization(ITranslator translator) 420return translator.FactoryForDeserializingTypeWithName<ProjectTaskInstance>();
Microsoft.Build.Engine.OM.UnitTests (13)
Instance\ProjectTargetInstance_Tests.cs (2)
38Assert.Equal("t1", ((ProjectTaskInstance)target.Children[0]).Name); 40IList<ProjectTaskInstance> tasks = Helpers.MakeList(target.Tasks);
Instance\ProjectTaskInstance_Tests.cs (7)
26var task = GetSampleTaskInstance(); 47var task = GetTaskInstance(@"<t1 a=''/>"); 55private static ProjectTaskInstance GetSampleTaskInstance() 57ProjectTaskInstance task = GetTaskInstance(@"<t1 a='a1' b='b1' ContinueOnError='coe' Condition='c'/>"); 65private static ProjectTaskInstance GetTaskInstance(string taskXmlString) 79ProjectTaskInstance task = (ProjectTaskInstance)(instance.Targets["t"].Children[0]);
Instance\ProjectTaskOutputItemInstance_Tests.cs (2)
52ProjectTaskInstance task = (ProjectTaskInstance)instance.Targets["t"].Children[0];
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (2)
52ProjectTaskInstance task = (ProjectTaskInstance)instance.Targets["t"].Children[0];
Microsoft.Build.Engine.UnitTests (21)
BackEnd\MockTaskBuilder.cs (4)
43public List<ProjectTaskInstance> ExecutedTasks 73ExecutedTasks = new List<ProjectTaskInstance>(); 97ProjectTaskInstance taskInstance = task as ProjectTaskInstance;
BackEnd\TargetBuilder_Tests.cs (1)
1550foreach (ProjectTaskInstance task in mockBuilder.ExecutedTasks)
BackEnd\TaskExecutionHost_Tests.cs (1)
1268ProjectTaskInstance taskInstance = project.Targets["foo"].Tasks.First();
Construction\SolutionProjectGenerator_Tests.cs (4)
1354foreach (ProjectTaskInstance childNode in target.Tasks) 2551ProjectTaskInstance task = Assert.IsType<ProjectTaskInstance>(projectInstance.Targets["MyTarget"].Children[0]); 2612.ShouldBeOfType<ProjectTaskInstance>()
Instance\ProjectTaskInstance_Internal_Tests.cs (3)
78var original = CreateTargetTask(null, parametersCopy, outputs); 81var copy = ProjectTaskInstance.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
TestComparers\ProjectInstanceModelTestComparers.cs (7)
135if (x is ProjectTaskInstance) 137return new TargetTaskComparer().Equals((ProjectTaskInstance)x, (ProjectTaskInstance)y); 314public class TargetTaskComparer : IEqualityComparer<ProjectTaskInstance> 316public bool Equals(ProjectTaskInstance x, ProjectTaskInstance y) 336public int GetHashCode(ProjectTaskInstance obj)
TestData\ProjectInstanceTestObjects.cs (1)
107public static ProjectTaskInstance CreateTargetTask(