Implemented interface member:
method
HasResultsForTarget
Microsoft.Build.BackEnd.IBuildResults.HasResultsForTarget(System.String)
53 references to HasResultsForTarget
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (2)
123ErrorUtilities.VerifyThrow(result.HasResultsForTarget(target), "No results in cache for target " + target); 320if (!result.HasResultsForTarget(target) || (result[target].ResultCode == TargetResultCode.Skipped && !skippedResultsAreOK))
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
549if (_buildResult.HasResultsForTarget(currentTargetEntry.Name)) 668if (_buildResult.HasResultsForTarget(targetSpecification.TargetName))
BackEnd\Components\Scheduler\Scheduler.cs (2)
1639if (blocker.PartialBuildResult.HasResultsForTarget(blockingRequest.BlockingTarget)) 2073!requestResults.HasResultsForTarget(target))
Microsoft.Build.Engine.UnitTests (47)
BackEnd\BuildManager_Tests.cs (10)
1783Assert.True(result1.HasResultsForTarget("target1")); // "Results for target1 missing" 1785Assert.True(result2.HasResultsForTarget("target2")); // "Results for target2 missing" 1818Assert.True(result1.HasResultsForTarget("target1")); // "Results for target1 missing" 1820Assert.True(result2.HasResultsForTarget("target2")); // "Results for target2 missing" 1852Assert.True(result1.HasResultsForTarget("target1")); // "Results for target1 missing" 1854Assert.True(result2.HasResultsForTarget("target1")); // "Results for target1 (second call) missing" 3418Assert.True(result1.HasResultsForTarget("target1")); 3448Assert.True(result1.HasResultsForTarget("target1")); 3479Assert.True(buildResult.HasResultsForTarget("target1")); 3480Assert.True(buildResult.HasResultsForTarget("target2"));
BackEnd\BuildResult_Tests.cs (2)
250Assert.True(result.HasResultsForTarget("foo")); 251Assert.False(result.HasResultsForTarget("bar"));
BackEnd\CacheSerialization_Tests.cs (3)
140Assert.True(buildResult.HasResultsForTarget("target1")); 141Assert.True(buildResult.HasResultsForTarget("target2")); 142Assert.False(buildResult.HasResultsForTarget("target3"));
BackEnd\ResultsCache_Tests.cs (8)
61Assert.True(retrievedResult.HasResultsForTarget("testTarget")); 62Assert.True(retrievedResult.HasResultsForTarget("otherTarget")); 87Assert.True(results[0].HasResultsForTarget("result1target1")); 88Assert.True(results[0].HasResultsForTarget("result1target2")); 89Assert.True(results[1].HasResultsForTarget("result2target1")); 191Assert.False(response.Results.HasResultsForTarget("testTarget")); 518if (!a.HasResultsForTarget(target) || !b.HasResultsForTarget(target))
BackEnd\TargetBuilder_Tests.cs (24)
108Assert.True(result.HasResultsForTarget("Empty")); 130Assert.True(result.HasResultsForTarget("Baz")); 131Assert.False(result.HasResultsForTarget("Bar")); 136Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Bar")); 154Assert.True(result.HasResultsForTarget("DepSkip")); 155Assert.False(result.HasResultsForTarget("Skip")); 159Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("SkipCondition")); 183Assert.True(result.HasResultsForTarget("DepError")); 184Assert.False(result.HasResultsForTarget("Foo")); 185Assert.False(result.HasResultsForTarget("Skip")); 186Assert.False(result.HasResultsForTarget("Error")); 187Assert.False(result.HasResultsForTarget("Baz2")); 188Assert.False(result.HasResultsForTarget("Bar")); 189Assert.False(result.HasResultsForTarget("Baz")); 193Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Foo")); 194Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Skip")); 195Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Error")); 196Assert.False(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Baz2")); 197Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Bar")); 198Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Baz")); 1436Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Build")); 1437Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("ProduceError1")); 1438Assert.False(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("ProduceError2")); 1439Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("_Error1"));