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