1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
930_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.TargetName, out _target);
41 references to _target
Microsoft.Build (41)
BackEnd\Components\RequestBuilder\TargetEntry.cs (41)
266if (_target == null) 271return _target; 340if (ExpressionShredder.ContainsMetadataExpressionOutsideTransform(_target.Condition)) 342ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 348_target.Condition, 353_target.ConditionLocation, 370string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 381TargetName = _target.Name, 382TargetFile = _target.Location.File, 386Condition = _target.Condition, 396var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation, projectLoggingContext); 401dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 417ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 423List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location); 447targetLoggingContext = projectLoggingContext.LogTargetBatchStarted(projectFullPath, _target, parentTargetName, _buildReason); 465TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 475if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs)) 586string targetReturns = _target.Returns; 587ElementLocation targetReturnsLocation = _target.ReturnsLocation; 598if (!_target.ParentProjectSupportsReturnsAttribute) 600targetReturns = _target.Outputs; 601targetReturnsLocation = _target.OutputsLocation; 609_target.KeepDuplicateOutputs, 614_target.KeepDuplicateOutputsLocation, 622List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location); 696List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 698foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren) 821for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 823ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 907if (_target.Inputs.Length > 0) 909batchableTargetParameters.Add(_target.Inputs); 912if (_target.Outputs.Length > 0) 914batchableTargetParameters.Add(_target.Outputs); 917if (!string.IsNullOrEmpty(_target.Returns)) 919batchableTargetParameters.Add(_target.Returns); 933_target != null,