1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
953_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.TargetName, out _target);
41 references to _target
Microsoft.Build (41)
BackEnd\Components\RequestBuilder\TargetEntry.cs (41)
282if (_target == null) 287return _target; 356if (ExpressionShredder.ContainsMetadataExpressionOutsideTransform(_target.Condition)) 358ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 364_target.Condition, 369_target.ConditionLocation, 386string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 397TargetName = _target.Name, 398TargetFile = _target.Location.File, 402Condition = _target.Condition, 412var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation); 417dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 433Assumed.False(_isExecuting, $"Target {_target.Name} is already executing"); 439List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 472targetLoggingContext = projectLoggingContext.LogTargetBatchStarted(projectFullPath, _target, parentTargetName, _buildReason); 490TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 503if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs)) 613string targetReturns = _target.Returns; 614ElementLocation targetReturnsLocation = _target.ReturnsLocation; 625if (!_target.ParentProjectSupportsReturnsAttribute) 627targetReturns = _target.Outputs; 628targetReturnsLocation = _target.OutputsLocation; 636_target.KeepDuplicateOutputs, 641_target.KeepDuplicateOutputsLocation, 649List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 729List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 731foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren) 849for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 851ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 930if (_target.Inputs.Length > 0) 932batchableTargetParameters.Add(_target.Inputs); 935if (_target.Outputs.Length > 0) 937batchableTargetParameters.Add(_target.Outputs); 940if (!string.IsNullOrEmpty(_target.Returns)) 942batchableTargetParameters.Add(_target.Returns); 956_target != null,