1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
925_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.TargetName, out _target);
41 references to _target
Microsoft.Build (41)
BackEnd\Components\RequestBuilder\TargetEntry.cs (41)
271if (_target == null) 276return _target; 345if (ExpressionShredder.ContainsMetadataExpressionOutsideTransform(_target.Condition)) 347ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 353_target.Condition, 358_target.ConditionLocation, 374string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 385TargetName = _target.Name, 386TargetFile = _target.Location.File, 390Condition = _target.Condition, 400var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation); 405dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 421ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 427List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 458targetLoggingContext = projectLoggingContext.LogTargetBatchStarted(projectFullPath, _target, parentTargetName, _buildReason); 476TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 486if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs)) 591string targetReturns = _target.Returns; 592ElementLocation targetReturnsLocation = _target.ReturnsLocation; 603if (!_target.ParentProjectSupportsReturnsAttribute) 605targetReturns = _target.Outputs; 606targetReturnsLocation = _target.OutputsLocation; 614_target.KeepDuplicateOutputs, 619_target.KeepDuplicateOutputsLocation, 627List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 701List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 703foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren) 821for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 823ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 902if (_target.Inputs.Length > 0) 904batchableTargetParameters.Add(_target.Inputs); 907if (_target.Outputs.Length > 0) 909batchableTargetParameters.Add(_target.Outputs); 912if (!string.IsNullOrEmpty(_target.Returns)) 914batchableTargetParameters.Add(_target.Returns); 928_target != null,