1 write to _taskNode
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
163
_taskNode
= taskInstance as ProjectTaskInstance;
46 references to _taskNode
Microsoft.Build (46)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (46)
165
if (
_taskNode
!= null && requestEntry.Request.HostServices != null)
167
_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name,
_taskNode
.Name);
241
if (
_taskNode
== null)
247
List<string> taskParameters = new List<string>(
_taskNode
.ParametersForBuild.Count +
_taskNode
.Outputs.Count);
249
foreach (KeyValuePair<string, (string, ElementLocation)> taskParameter in
_taskNode
.ParametersForBuild)
255
foreach (ProjectTaskInstanceChild taskOutputSpecification in
_taskNode
.Outputs)
277
if (!String.IsNullOrEmpty(
_taskNode
.Condition))
279
taskParameters.Add(
_taskNode
.Condition);
282
if (!String.IsNullOrEmpty(
_taskNode
.ContinueOnError))
284
taskParameters.Add(
_taskNode
.ContinueOnError);
305
if (
_taskNode
!= null)
308
_taskExecutionHost.InitializeForTask(taskHost, _targetLoggingContext, _buildRequestEntry.RequestConfiguration.Project,
_taskNode
.Name,
_taskNode
.Location, _taskHostObject, _continueOnError != ContinueOnError.ErrorAndStop,
372
ParserOptions parserOptions = (
_taskNode
== null) ? ParserOptions.AllowPropertiesAndItemLists : ParserOptions.AllowAll;
393
if (
_taskNode
== null)
430
MSBuildEventSource.Log.ExecuteTaskStart(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
486
MSBuildEventSource.Log.ExecuteTaskStop(
_taskNode
?.Name, taskLoggingContext.BuildEventContext.TaskId);
522
ErrorUtilities.VerifyThrowInternalNull(
_taskNode
, "taskNode"); // taskNode should never be null when we're calling this method.
524
string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation);
525
string msbuildRuntime = expander.ExpandIntoStringAndUnescape(
_taskNode
.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll,
_taskNode
.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
608
if (
_taskNode
!= null)
623
_taskNode
.Name,
652
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError",
_taskNode
.Name);
687
string continueOnErrorAttribute =
_taskNode
.ContinueOnError;
690
if (
_taskNode
.ContinueOnErrorLocation != null)
692
string expandedValue = bucket.Expander.ExpandIntoStringAndUnescape(continueOnErrorAttribute, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
718
ProjectErrorUtilities.ThrowInvalidProject(
_taskNode
.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute",
_taskNode
.Name, e.Message);
746
if (!taskExecutionHost.SetTaskParameters(
_taskNode
.ParametersForBuild))
749
ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError",
_taskNode
.Name, String.Empty);
802
using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.Name,
_taskNode
.Name, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.Project.PropertiesToBuildWith))
816
_taskNode
.Name);
924
_taskNode
.Name);
934
_taskNode
.Name);
957
taskLoggingContext.LogComment(MessageImportance.Normal, "TaskReturnedFalseButDidNotLogError",
_taskNode
.Name);
964
_taskNode
.Name);
972
_taskNode
.Name);
998
if (
_taskNode
.ContinueOnErrorLocation != null)
1000
settingString = bucket.Expander.ExpandIntoStringAndUnescape(
_taskNode
.ContinueOnError, ExpanderOptions.ExpandAll,
_taskNode
.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
1007
_taskNode
.Name,
1071
foreach (ProjectTaskInstanceChild taskOutputSpecification in
_taskNode
.Outputs)
1181
string taskParameterAttribute =
_taskNode
.GetParameter(taskParameterName);