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