1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
921_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, 373string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 384TargetName = _target.Name, 385TargetFile = _target.Location.File, 389Condition = _target.Condition, 399var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation); 404dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 420ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 426List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 457targetLoggingContext = 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)) 587string targetReturns = _target.Returns; 588ElementLocation targetReturnsLocation = _target.ReturnsLocation; 599if (!_target.ParentProjectSupportsReturnsAttribute) 601targetReturns = _target.Outputs; 602targetReturnsLocation = _target.OutputsLocation; 610_target.KeepDuplicateOutputs, 615_target.KeepDuplicateOutputsLocation, 623List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 697List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 699foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren) 817for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 819ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 898if (_target.Inputs.Length > 0) 900batchableTargetParameters.Add(_target.Inputs); 903if (_target.Outputs.Length > 0) 905batchableTargetParameters.Add(_target.Outputs); 908if (!string.IsNullOrEmpty(_target.Returns)) 910batchableTargetParameters.Add(_target.Returns); 924_target != null,