Implemented interface member:
property
this
Microsoft.Build.BackEnd.IBuildResults.this[System.String]
37 references to
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (2)
320
if (!result.HasResultsForTarget(target) || (result
[
target].ResultCode == TargetResultCode.Skipped && !skippedResultsAreOK))
336
if (result
[
target].ResultCode == TargetResultCode.Failure && (targetsMissingResults == null || targetsMissingResults.Count == 0))
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
102
var targetResult = result
[
target.name];
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
285
results[i] = _buildResult
[
targets[i]];
551
TargetResult targetResult = _buildResult
[
currentTargetEntry.Name] as TargetResult;
670
if (_buildResult
[
targetSpecification.TargetName].ResultCode != TargetResultCode.Skipped)
Microsoft.Build.Engine.UnitTests (29)
BackEnd\BuildResult_Tests.cs (21)
130
Assert.Equal(TargetResultCode.Success, result
[
"foo"].ResultCode);
131
Assert.Equal(TargetResultCode.Failure, result
[
"bar"].ResultCode);
141
ITargetResult targetResult = result
[
"foo"];
153
ITargetResult targetResult = result
[
"bar"];
200
Assert.Equal(TargetResultCode.Success, result
[
"foo"].ResultCode);
201
Assert.Equal(TargetResultCode.Failure, result
[
"bar"].ResultCode);
209
Assert.Equal(TargetResultCode.Success, result
[
"foo"].ResultCode);
210
Assert.Equal(TargetResultCode.Failure, result
[
"bar"].ResultCode);
211
Assert.Equal(TargetResultCode.Success, result
[
"xor"].ResultCode);
339
Assert.Equal(result
[
"alpha"].ResultCode, deserializedResult
[
"alpha"].ResultCode);
340
Assert.True(TranslationHelpers.CompareExceptions(result
[
"alpha"].Exception, deserializedResult
[
"alpha"].Exception, out diffReason), diffReason);
341
Assert.True(TranslationHelpers.CompareCollections(result
[
"alpha"].Items, deserializedResult
[
"alpha"].Items, TaskItemComparer.Instance));
342
Assert.Equal(result
[
"omega"].ResultCode, deserializedResult
[
"omega"].ResultCode);
343
Assert.True(TranslationHelpers.CompareExceptions(result
[
"omega"].Exception, deserializedResult
[
"omega"].Exception, out diffReason), diffReason);
344
Assert.True(TranslationHelpers.CompareCollections(result
[
"omega"].Items, deserializedResult
[
"omega"].Items, TaskItemComparer.Instance));
BackEnd\ResultsCache_Tests.cs (4)
523
if (a
[
target].ResultCode != b
[
target].ResultCode)
528
if (!AreItemsIdentical(a
[
target].Items, b
[
target].Items))
BackEnd\TargetBuilder_Tests.cs (4)
109
Assert.Equal(TargetResultCode.Success, result
[
"Empty"].ResultCode);
110
Assert.Empty(result
[
"Empty"].Items);
132
Assert.Equal(TargetResultCode.Success, result
[
"Baz"].ResultCode);
156
Assert.Equal(TargetResultCode.Success, result
[
"DepSkip"].ResultCode);
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
1518
buildResult
[
targetName].ResultCode.ShouldBe(TargetResultCode.Failure);
1542
buildResult
[
targetName].ResultCode.ShouldBe(TargetResultCode.Success);