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
(
72 references to ProjectTaskInstance
Microsoft.Build (38)
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 (21)
428
ProjectTaskInstance
copyNonExistentReferencesTask = target.AddTask("Copy", String.Format(CultureInfo.InvariantCulture, "!Exists('%({0}.Identity)')", referenceItemName), "true");
434
ProjectTaskInstance
getRefAssembliesTask = target.AddTask("GetReferenceAssemblyPaths", null, null);
444
ProjectTaskInstance
rarTask = target.AddTask("ResolveAssemblyReference", String.Format(CultureInfo.InvariantCulture, "Exists('%({0}.Identity)')", referenceItemName), null);
458
ProjectTaskInstance
copyTask = target.AddTask("Copy", conditionDescribingValidConfigurations, null);
480
ProjectTaskInstance
createItemTask = target.AddTask("CreateItem", null, null);
486
ProjectTaskInstance
readLinesTask = target.AddTask("ReadLinesFromFile", String.Format(CultureInfo.InvariantCulture, @" '%({0}_RefreshFile.Identity)' != '' ", referenceItemName), null);
493
ProjectTaskInstance
combinePathTask = target.AddTask("CombinePath", null, null);
502
private static
ProjectTaskInstance
AddMSBuildTaskInstance(
510
ProjectTaskInstance
msbuildTask = target.AddTask("MSBuild", null, null);
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);
1521
ProjectTaskInstance
newTask = target.AddTask("AspNetCompiler", conditionDescribingValidConfigurations, null);
1580
private void SetToolPathForAspNetCompilerTask(ProjectInSolution project,
ProjectTaskInstance
task)
1634
ProjectTaskInstance
msbuildTask = AddMSBuildTaskInstance(
1652
ProjectTaskInstance
createItemTask = target.AddTask("CreateItem", null, null);
1810
ProjectTaskInstance
getFrameworkPathTask = frameworkPathAndRedistListTarget.AddTask("GetFrameworkPath", String.Empty, null);
1843
ProjectTaskInstance
createItemTask = frameworkPathAndRedistListTarget.AddTask("CreateItem", null, null);
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(