1 write to _target
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
926_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, 375string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 386TargetName = _target.Name, 387TargetFile = _target.Location.File, 391Condition = _target.Condition, 401var dependencies = _expander.ExpandIntoStringListLeaveEscaped(_target.DependsOnTargets, ExpanderOptions.ExpandPropertiesAndItems, _target.DependsOnTargetsLocation); 406dependencyTargets.Add(new TargetSpecification(dependencyTargetName, _target.DependsOnTargetsLocation)); 422ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 428List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 459targetLoggingContext = projectLoggingContext.LogTargetBatchStarted(projectFullPath, _target, parentTargetName, _buildReason); 477TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 487if (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) 822for (; (currentTask < _target.Children.Count) && !_cancellationToken.IsCancellationRequested; ++currentTask) 824ProjectTargetInstanceChild targetChildInstance = _target.Children[currentTask]; 903if (_target.Inputs.Length > 0) 905batchableTargetParameters.Add(_target.Inputs); 908if (_target.Outputs.Length > 0) 910batchableTargetParameters.Add(_target.Outputs); 913if (!string.IsNullOrEmpty(_target.Returns)) 915batchableTargetParameters.Add(_target.Returns); 929_target != null,