1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
936_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.TargetName, out _target);
41 references to _target
Microsoft.Build (41)
BackEnd\Components\RequestBuilder\TargetEntry.cs (41)
276if (_target == null) 281return _target; 350if (ExpressionShredder.ContainsMetadataExpressionOutsideTransform(_target.Condition)) 352ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 358_target.Condition, 363_target.ConditionLocation, 378string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 389TargetName = _target.Name, 390TargetFile = _target.Location.File, 394Condition = _target.Condition, 404var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation); 409dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 425ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 431List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 462targetLoggingContext = projectLoggingContext.LogTargetBatchStarted(projectFullPath, _target, parentTargetName, _buildReason); 481TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 491if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs)) 592string targetReturns = _target.Returns; 593ElementLocation targetReturnsLocation = _target.ReturnsLocation; 604if (!_target.ParentProjectSupportsReturnsAttribute) 606targetReturns = _target.Outputs; 607targetReturnsLocation = _target.OutputsLocation; 615_target.KeepDuplicateOutputs, 620_target.KeepDuplicateOutputsLocation, 628List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 702List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 704foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren) 827for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 829ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 913if (_target.Inputs.Length > 0) 915batchableTargetParameters.Add(_target.Inputs); 918if (_target.Outputs.Length > 0) 920batchableTargetParameters.Add(_target.Outputs); 923if (!string.IsNullOrEmpty(_target.Returns)) 925batchableTargetParameters.Add(_target.Returns); 939_target != null,