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