2 writes to TaskInstance
Microsoft.Build (2)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
328
TaskInstance
= InstantiateTask(taskIdentityParameters);
540
TaskInstance
= null;
17 references to TaskInstance
Microsoft.Build (17)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
655
using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun, _taskExecutionHost?.
TaskInstance
?.GetType());
759
if (taskExecutionHost.
TaskInstance
is MSBuild msbuildTask)
795
else if (taskExecutionHost.
TaskInstance
is CallTarget callTargetTask)
946
IBuildEngine be = taskExecutionHost.
TaskInstance
.BuildEngine;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (13)
330
if (
TaskInstance
== null)
335
string realTaskAssemblyLoaction =
TaskInstance
.GetType().Assembly.Location;
342
TaskInstance
.BuildEngine = _buildEngine;
343
TaskInstance
.HostObject = _taskHost;
398
if (this.
TaskInstance
is IIncrementalTask incrementalTask)
533
if (_taskFactoryWrapper != null &&
TaskInstance
!= null)
535
_taskFactoryWrapper.TaskFactory.CleanupTask(
TaskInstance
);
564
ErrorUtilities.VerifyThrow(
TaskInstance
== null, "Task Instance should be null");
587
taskReturnValue =
TaskInstance
.Execute();
643
ITask currentInstance =
TaskInstance
;
803
object outputs = _taskFactoryWrapper.GetPropertyValue(
TaskInstance
, parameter);
818
object outputs = _taskFactoryWrapper.GetPropertyValue(
TaskInstance
, parameter);
1336
_taskFactoryWrapper.SetPropertyValue(
TaskInstance
, parameter, parameterValue);