1 write to _taskNode
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
164
_taskNode
= taskInstance as ProjectTaskInstance;
46 references to _taskNode
Microsoft.Build (46)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (46)
166
if (
_taskNode
!= null && requestEntry.Request.HostServices != null)
168
_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name,
_taskNode
.Name);
242
if (
_taskNode
== null)
248
List<string> taskParameters = new List<string>(
_taskNode
.ParametersForBuild.Count +
_taskNode
.Outputs.Count);
250
foreach (KeyValuePair<string, (string, ElementLocation)> taskParameter in
_taskNode
.ParametersForBuild)
257
for (int i = 0; i <
_taskNode
.Outputs.Count; i++)
259
ProjectTaskInstanceChild taskOutputSpecification =
_taskNode
.Outputs[i];
278
if (!String.IsNullOrEmpty(
_taskNode
.Condition))
280
taskParameters.Add(
_taskNode
.Condition);
283
if (!String.IsNullOrEmpty(
_taskNode
.ContinueOnError))
285
taskParameters.Add(
_taskNode
.ContinueOnError);
306
if (
_taskNode
!= null)
309
_taskExecutionHost.InitializeForTask(taskHost, _targetLoggingContext, _buildRequestEntry.RequestConfiguration.Project,
_taskNode
.Name,
_taskNode
.Location, _taskHostObject, _continueOnError != ContinueOnError.ErrorAndStop,
373
ParserOptions parserOptions = (
_taskNode
== null) ? ParserOptions.AllowPropertiesAndItemLists : ParserOptions.AllowAll;
394
if (
_taskNode
== null)
431
MSBuildEventSource.Log.ExecuteTaskStart(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
496
MSBuildEventSource.Log.ExecuteTaskStop(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
532
ErrorUtilities.VerifyThrowInternalNull(
_taskNode
, "taskNode"); // taskNode should never be null when we're calling this method.
534
string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation);
535
string msbuildRuntime = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
618
if (
_taskNode
!= null)
634
_taskNode
.Name,
663
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError",
_taskNode
.Name);
694
string continueOnErrorAttribute =
_taskNode
.ContinueOnError;
697
if (
_taskNode
.ContinueOnErrorLocation != null)
699
string expandedValue = bucket.Expander.ExpandIntoStringAndUnescape(continueOnErrorAttribute, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
725
ProjectErrorUtilities.ThrowInvalidProject(
_taskNode
.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute",
_taskNode
.Name, e.Message);
753
if (!taskExecutionHost.SetTaskParameters(
_taskNode
.ParametersForBuild))
756
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError",
_taskNode
.Name, String.Empty);
823
_taskNode
.Name);
931
_taskNode
.Name);
941
_taskNode
.Name);
964
taskLoggingContext.LogComment(MessageImportance.Normal, "TaskReturnedFalseButDidNotLogError",
_taskNode
.Name);
971
_taskNode
.Name);
979
_taskNode
.Name);
1005
if (
_taskNode
.ContinueOnErrorLocation != null)
1007
settingString = bucket.Expander.ExpandIntoStringAndUnescape(
_taskNode
.ContinueOnError, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
1014
_taskNode
.Name,
1078
foreach (ProjectTaskInstanceChild taskOutputSpecification in
_taskNode
.Outputs)
1188
string taskParameterAttribute =
_taskNode
.GetParameter(taskParameterName);