1 write to _taskNode
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
161
_taskNode
= taskInstance as ProjectTaskInstance;
47 references to _taskNode
Microsoft.Build (47)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (47)
163
if (
_taskNode
!= null && requestEntry.Request.HostServices != null)
167
_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name,
_taskNode
.Name);
175
_taskNode
.Name,
252
if (
_taskNode
== null)
258
List<string> taskParameters = new List<string>(
_taskNode
.ParametersForBuild.Count +
_taskNode
.Outputs.Count);
260
foreach (KeyValuePair<string, (string, ElementLocation)> taskParameter in
_taskNode
.ParametersForBuild)
267
for (int i = 0; i <
_taskNode
.Outputs.Count; i++)
269
ProjectTaskInstanceChild taskOutputSpecification =
_taskNode
.Outputs[i];
288
if (!String.IsNullOrEmpty(
_taskNode
.Condition))
290
taskParameters.Add(
_taskNode
.Condition);
293
if (!String.IsNullOrEmpty(
_taskNode
.ContinueOnError))
295
taskParameters.Add(
_taskNode
.ContinueOnError);
316
if (
_taskNode
!= null)
323
_taskNode
.Name,
324
_taskNode
.Location,
394
ParserOptions parserOptions = (
_taskNode
== null) ? ParserOptions.AllowPropertiesAndItemLists : ParserOptions.AllowAll;
415
if (
_taskNode
== null)
452
MSBuildEventSource.Log.ExecuteTaskStart(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
517
MSBuildEventSource.Log.ExecuteTaskStop(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
551
Assumed.NotNull(
_taskNode
); // taskNode should never be null when we're calling this method.
553
string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation);
554
string msbuildRuntime = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
632
if (
_taskNode
!= null)
648
_taskNode
.Name,
677
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError",
_taskNode
.Name);
708
string continueOnErrorAttribute =
_taskNode
.ContinueOnError;
711
if (
_taskNode
.ContinueOnErrorLocation != null)
713
string expandedValue = bucket.Expander.ExpandIntoStringAndUnescape(continueOnErrorAttribute, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
739
ProjectErrorUtilities.ThrowInvalidProject(
_taskNode
.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute",
_taskNode
.Name, e.Message);
767
if (!taskExecutionHost.SetTaskParameters(
_taskNode
.ParametersForBuild))
770
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError",
_taskNode
.Name, String.Empty);
851
_taskNode
.Name);
959
_taskNode
.Name);
969
_taskNode
.Name);
992
taskLoggingContext.LogComment(MessageImportance.Normal, "TaskReturnedFalseButDidNotLogError",
_taskNode
.Name);
999
_taskNode
.Name);
1007
_taskNode
.Name);
1033
if (
_taskNode
.ContinueOnErrorLocation != null)
1035
settingString = bucket.Expander.ExpandIntoStringAndUnescape(
_taskNode
.ContinueOnError, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
1042
_taskNode
.Name,
1106
foreach (ProjectTaskInstanceChild taskOutputSpecification in
_taskNode
.Outputs)
1216
string taskParameterAttribute =
_taskNode
.GetParameter(taskParameterName);