113 instantiations of BuildResult
Microsoft.Build (23)
BackEnd\BuildManager\BuildManager.cs (4)
1871ReportResultsToSubmission<BuildRequestData, BuildResult>(new BuildResult(submission.BuildRequest!, ex)); 2307var result = new BuildResult(submission.BuildRequest!); 2347_resultsCache!.AddResult(new BuildResult(request, e)); 2512_resultsCache!.AddResult(new BuildResult(buildSubmission.BuildRequest,
BackEnd\BuildManager\BuildSubmission.cs (1)
219return new(BuildRequest!, exception);
BackEnd\BuildManager\CacheAggregator.cs (1)
91new BuildResult(
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
273BuildResult result = entry.Result ?? new BuildResult(entry.Request, new BuildAbortedException()); 341BuildResult resultToReport = new BuildResult(request, result, null);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
434_outstandingResults[requestEntry.Key] = new BuildResult(requestEntry.Value, new BuildAbortedException()); 444_outstandingResults[request.NodeRequestId] = new BuildResult(request, new BuildAbortedException());
BackEnd\Components\Caching\ResultsCache.cs (1)
220response.Results = new BuildResult(request, allResults, targetsToAddResultsFor.ToArray(), null);
BackEnd\Components\ProjectCache\CacheResult.cs (1)
110var buildResult = new BuildResult();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
866result = new BuildResult(_requestEntry.Request, thrownException); 1019results[i] = new BuildResult(new BuildRequest(), new BuildAbortedException());
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
136_buildResult = new BuildResult(entry.Request, existingBuildResult, null); 188BuildResult resultsToReport = new BuildResult(_buildResult, targetNames.Select(target => target.name).ToArray());
BackEnd\Components\Scheduler\Scheduler.cs (4)
440BuildResult newResult = new BuildResult(unscheduledRequest.BuildRequest, result, null); 1608_resultsCache.AddResult(new BuildResult(request.BuildRequest, new BuildAbortedException())); 1772var result = new BuildResult( 2008BuildResult result = new BuildResult(request);
BackEnd\Components\Scheduler\ScheduleResponse.cs (1)
135Unblocker = new BuildRequestUnblocker(parentRequest, new BuildResult(requestCausingCircularDependency, true /* circularDependency */));
BackEnd\Shared\BuildResult.cs (2)
689return new BuildResult(translator); 722BuildResult result = new BuildResult
Microsoft.Build.Engine.UnitTests (90)
BackEnd\BuildRequestEngine_Tests.cs (7)
105BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time.")); 115BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 128BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 147BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time.")); 159BuildResult result = new BuildResult(_entry.Request); 425BuildResult result = new BuildResult(_newRequest_Request.BuildRequests[0]); 490BuildResult result = new BuildResult(_newRequest_Request.BuildRequests[0]);
BackEnd\BuildRequestEntry_Tests.cs (11)
65BuildResult requiredResult = new BuildResult(waitingRequest); 81BuildResult result = new BuildResult(request); 105BuildResult requiredResult = new BuildResult(waitingRequest); 130BuildResult requiredResult1 = new BuildResult(waitingRequest1); 135BuildResult requiredResult2 = new BuildResult(waitingRequest2); 165BuildResult requiredResult1 = new BuildResult(waitingRequest1); 170BuildResult requiredResult2 = new BuildResult(waitingRequest2); 203BuildResult requiredResult = new BuildResult(request); 227BuildResult requiredResult = new BuildResult(request); 246BuildResult requiredResult = new BuildResult(request); 271BuildResult requiredResult = new BuildResult(randomRequest);
BackEnd\BuildResult_Tests.cs (26)
32BuildResult result2 = new BuildResult(request); 39BuildResult result1 = new BuildResult(request); 64BuildResult result = new BuildResult(null!); 71BuildResult result = new BuildResult(request); 75BuildResult result2 = new BuildResult(request2); 83BuildResult result = new BuildResult(request); 86result = new BuildResult(request, e); 95BuildResult result = new BuildResult(request); 108BuildResult result2 = new BuildResult(request2); 118BuildResult result = new BuildResult(request); 126BuildResult result = new BuildResult(request); 140BuildResult result = new BuildResult(request); 151BuildResult result = new BuildResult(request); 163BuildResult result = new BuildResult(request); 174BuildResult result = new BuildResult(request); 185BuildResult result = new BuildResult(request); 193BuildResult result = new BuildResult(request); 196BuildResult result2 = new BuildResult(request); 203BuildResult result3 = new BuildResult(request); 206BuildResult result4 = new BuildResult(request); 220BuildResult result = new BuildResult(request); 233BuildResult result = new BuildResult(request); 237BuildResult result2 = new BuildResult(request2); 247BuildResult result = new BuildResult(request); 258BuildResult result = new BuildResult(request); 314BuildResult result = new BuildResult(request, new BuildAbortedException());
BackEnd\CacheAggregator_Tests.cs (11)
82var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 103var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 108var buildResult2 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 132var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 154var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 162var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 198var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 217var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 219var buildResult12 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.Invalid, null)); 229var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 231var buildResult22 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.Invalid, null));
BackEnd\CacheSerialization_Tests.cs (3)
48var buildResult1 = new BuildResult(request1); 49var buildResult2 = new BuildResult(request2); 50var buildResult3 = new BuildResult(request3);
BackEnd\RequestBuilder_Tests.cs (8)
90BuildResult result = new BuildResult(request); 120BuildResult result = new BuildResult(request); 154BuildResult result = new BuildResult(request); 163BuildResult newResult = new BuildResult(_newBuildRequests_BuildRequests[0]); 193BuildResult result = new BuildResult(request); 202BuildResult newResult = new BuildResult(_newBuildRequests_BuildRequests[0]); 365BuildResult result = new BuildResult(entry.Request); 390BuildResult result = new BuildResult(entry.Request);
BackEnd\ResultsCache_Tests.cs (21)
36BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null); BuildResult result = new BuildResult(request); 50BuildResult result = new BuildResult(request); 55result = new BuildResult(request); 70BuildResult result = new BuildResult(request); 75result = new BuildResult(request); 79BuildResult result2 = new BuildResult(new BuildRequest(submissionId: 1, nodeRequestId: 0, configurationId: 2, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null)); 107BuildResult result = new BuildResult(request); 111BuildResult result2 = new BuildResult(request); 126BuildResult result = new BuildResult(request); 130BuildResult result2 = new BuildResult(request, new Exception("Test exception")); 145BuildResult result = new BuildResult(request); 157BuildResult result = new BuildResult(request); 161BuildResult result2 = new BuildResult(request); 181BuildResult result = new BuildResult(request); 233BuildResult resultForRequestWithNoBuildDataFlags = new(requestWithNoBuildDataFlags); 302BuildResult resultForRequestWithSubsetFlag1 = new(requestWithSubsetFlag1); 349BuildResult result = new BuildResult(request); 367var br1 = new BuildResult(request1); 375var br2 = new BuildResult(request2); 413var br1 = new BuildResult(request1); 414var br2 = new BuildResult(request2);
BackEnd\Scheduler_Tests.cs (2)
776BuildResult result = new BuildResult(request); 890var buildResult = new BuildResult(_defaultParentRequest);
BackEnd\TaskHost_Tests.cs (1)
82BuildResult buildResult = new BuildResult(buildRequest, false);
502 references to BuildResult
Microsoft.Build (174)
BackEnd\BuildManager\BuildManager.cs (21)
600_nodeManager.RegisterPacketHandler(NodePacketType.BuildResult, BuildResult.FactoryForDeserialization, this); 808if (buildResult is BuildResult result) 870=> (BuildSubmission)PendBuildRequest<BuildRequestData, BuildResult>(requestData); 923public BuildResult BuildRequest(BuildRequestData requestData) 924=> BuildRequest<BuildRequestData, BuildResult>(requestData); 995BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.BuildEventContext!.ProjectInstanceId); 1148public BuildResult Build(BuildParameters parameters, BuildRequestData requestData) 1149=> Build<BuildRequestData, BuildResult>(parameters, requestData); 1615BuildResult result = ExpectPacketType<BuildResult>(packet, NodePacketType.BuildResult); 1871ReportResultsToSubmission<BuildRequestData, BuildResult>(new BuildResult(submission.BuildRequest!, ex)); 1936Dictionary<ProjectGraphNode, BuildResult>? resultsPerNode = null; 1969new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 1984private Dictionary<ProjectGraphNode, BuildResult> BuildGraph( 2000var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count); 2307var result = new BuildResult(submission.BuildRequest!); 2316ReportResultsToSubmission<BuildRequestData, BuildResult>(result); 2412private void HandleResult(int node, BuildResult result) 2594BuildResult? result = submission.BuildRequest == null ? null : _resultsCache?.GetResultsForConfiguration(submission.BuildRequest.ConfigurationId); 2625ReportResultsToSubmission<BuildRequestData, BuildResult>(response.BuildResult);
BackEnd\BuildManager\BuildRequestData.cs (2)
21public class BuildRequestData : BuildRequestData<BuildRequestData, BuildResult> 182internal override BuildSubmissionBase<BuildRequestData, BuildResult> CreateSubmission(BuildManager buildManager,
BackEnd\BuildManager\BuildSubmission.cs (6)
146public class BuildSubmission : BuildSubmissionBase<BuildRequestData, BuildResult> 170void Clb(BuildSubmissionBase<BuildRequestData, BuildResult> submission) 182public override BuildResult Execute() 215protected internal override BuildResult CreateFailedResult(Exception exception) 222protected internal override void CheckResultValidForCompletion(BuildResult result) 251public new BuildResult? BuildResult => base.BuildResult;
BackEnd\BuildManager\CacheAggregator.cs (1)
86foreach (var result in results)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
273BuildResult result = entry.Result ?? new BuildResult(entry.Request, new BuildAbortedException()); 340BuildResult result = cache.GetResultsForConfiguration(request.ConfigurationId); 341BuildResult resultToReport = new BuildResult(request, result, null); 425BuildResult result = unblocker.Result; 646private void RaiseRequestComplete(BuildRequest request, BuildResult result) 1004private void Builder_OnBlockedRequest(BuildRequestEntry issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult = null) 1131var existingResultsToReport = new List<BuildResult>(); 1246foreach (BuildResult existingResult in existingResultsToReport) 1444public BuildResult PartialBuildResult { get; } 1495public PendingUnsubmittedBuildRequests(BuildRequestEntry issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (8)
101private Dictionary<int, BuildResult> _outstandingResults; 171public BuildResult Result { get; private set; } 302public void ReportResult(BuildResult result) 365_outstandingResults ??= new Dictionary<int, BuildResult>(); 399public IDictionary<int, BuildResult> Continue() 407IDictionary<int, BuildResult> ret = _outstandingResults; 427_outstandingResults = new Dictionary<int, BuildResult>(_outstandingRequests.Count); 470public void Complete(BuildResult result)
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (2)
5using BuildResult = Microsoft.Build.Execution.BuildResult; 18internal delegate void RequestCompleteDelegate(BuildRequest request, BuildResult result);
BackEnd\Components\Caching\IResultsCache.cs (5)
6using BuildResult = Microsoft.Build.Execution.BuildResult; 15internal interface IResultsCache : IBuildComponent, ITranslatable, IEnumerable<BuildResult> 21void AddResult(BuildResult result); 33BuildResult GetResultForRequest(BuildRequest request); 40BuildResult GetResultsForConfiguration(int configurationId);
BackEnd\Components\Caching\ResultsCache.cs (20)
33private ConcurrentDictionary<int, BuildResult> _resultsByConfiguration; 40_resultsByConfiguration = new ConcurrentDictionary<int, BuildResult>(); 51internal IDictionary<int, BuildResult> ResultsDictionary 65public void AddResult(BuildResult result) 69if (_resultsByConfiguration.TryGetValue(result.ConfigurationId, out BuildResult buildResult)) 99foreach (KeyValuePair<int, BuildResult> result in _resultsByConfiguration) 113public BuildResult GetResultForRequest(BuildRequest request) 119if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult result)) 138public BuildResult GetResultsForConfiguration(int configurationId) 140BuildResult results; 173if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult allResults)) 238_resultsByConfiguration.TryRemove(configurationId, out BuildResult removedResult); 246IDictionary<int, BuildResult> localReference = _resultsByConfiguration; 251(ITranslator aTranslator, ref BuildResult result) => aTranslator.Translate(ref result), 252capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.GetLogicalCoreCount(), capacity)); 256_resultsByConfiguration = (ConcurrentDictionary<int, BuildResult>)localReference; 267foreach (BuildResult resultToCache in _resultsByConfiguration.Values) 315private static bool CheckResults(BuildResult result, List<string> targets, HashSet<string> targetsMissingResults, bool skippedResultsAreOK) 352private static bool AreBuildResultFlagsCompatible(BuildRequest buildRequest, BuildResult buildResult) 401public IEnumerator<BuildResult> GetEnumerator()
BackEnd\Components\Caching\ResultsCacheResponse.cs (2)
7using BuildResult = Microsoft.Build.Execution.BuildResult; 42public BuildResult Results;
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (6)
40public void AddResult(BuildResult result) 50public BuildResult GetResultForRequest(BuildRequest request) 52var overrideResult = _override.GetResultForRequest(request); 64public BuildResult GetResultsForConfiguration(int configurationId) 66var overrideResult = _override.GetResultsForConfiguration(configurationId); 122public IEnumerator<BuildResult> GetEnumerator()
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
94internal void LogRequestHandledFromCache(BuildRequest request, BuildRequestConfiguration configuration, BuildResult result)
BackEnd\Components\ProjectCache\CacheResult.cs (7)
44/// contain information about what <see cref="Execution.BuildResult"/> MSBuild should use for the queried project. 45/// It is assumed that all cache hits result in a successful <see cref="Execution.BuildResult"/>. 51public BuildResult? BuildResult { get; } 59BuildResult? buildResult = null, 80public static CacheResult IndicateCacheHit(BuildResult buildResult) 108private static BuildResult ConstructBuildResult(IReadOnlyCollection<PluginTargetResult> targetResults) 110var buildResult = new BuildResult();
BackEnd\Components\ProjectCache\ProjectCachePluginBase.cs (1)
68BuildResult buildResult,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
708BuildResult buildResult,
BackEnd\Components\RequestBuilder\IRequestBuilder.cs (1)
31internal delegate void BuildRequestBlockedDelegate(BuildRequestEntry issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult);
BackEnd\Components\RequestBuilder\IRequestBuilderCallback.cs (2)
29Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets = false); 38Task BlockOnTargetInProgress(int blockingRequestId, string blockingTarget, BuildResult partialBuildResult);
BackEnd\Components\RequestBuilder\ITargetBuilder.cs (2)
8using BuildResult = Microsoft.Build.Execution.BuildResult; 29Task<BuildResult> BuildTargets(ProjectLoggingContext projectLoggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (23)
54private IDictionary<int, BuildResult> _continueResults; 332public async Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets = false) 382BuildResult[] results = await StartNewBuildRequests(requests); 396public async Task BlockOnTargetInProgress(int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult = null) 773BuildResult result = null; 876private void ReportResultAndCleanUp(BuildResult result) 919private async Task<BuildResult[]> StartNewBuildRequests(FullyQualifiedBuildRequest[] requests) 957BuildResult[] results; 994results = Array.Empty<BuildResult>(); 1006private BuildResult[] GetResultsForContinuation(FullyQualifiedBuildRequest[] requests, bool isContinue) 1008IDictionary<int, BuildResult> results = _continueResults; 1016results = new Dictionary<int, BuildResult>(); 1024foreach (BuildResult result in results.Values) 1034List<BuildResult> resultsList = new List<BuildResult>(results.Values); 1035resultsList.Sort(delegate (BuildResult left, BuildResult right) 1072private void RaiseOnBlockedRequest(int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult = null) 1104private async Task<BuildResult> BuildProject() 1208BuildResult result = await _targetBuilder.BuildTargets(_projectLoggingContext, _requestEntry, this, 1230BuildResult CopyTargetResultsFromProxyTargetsToRealTargets(BuildResult resultFromTargetBuilder) 1235var cachedResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (6)
81private BuildResult _buildResult; 103public async Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targetNames, Lookup baseLookup, CancellationToken cancellationToken) 134BuildResult existingBuildResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId); 188BuildResult resultsToReport = new BuildResult(_buildResult, targetNames.Select(target => target.name).ToArray()); 323async Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, Microsoft.Build.Collections.PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 331Task IRequestBuilderCallback.BlockOnTargetInProgress(int blockingGlobalBuildRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1205BuildResult[] results = await builderCallback.BuildProjects(
BackEnd\Components\Scheduler\IScheduler.cs (1)
55IEnumerable<ScheduleResponse> ReportResult(int nodeId, BuildResult result);
BackEnd\Components\Scheduler\SchedulableRequest.cs (4)
372public void UnblockWithPartialResultForBlockingTarget(BuildResult result) 385public void UnblockWithResult(BuildResult result) 417public void Complete(BuildResult result) 687public BlockingRequestKey(BuildResult result)
BackEnd\Components\Scheduler\Scheduler.cs (8)
376public IEnumerable<ScheduleResponse> ReportResult(int nodeId, BuildResult result) 440BuildResult newResult = new BuildResult(unscheduledRequest.BuildRequest, result, null); 1772var result = new BuildResult( 2008BuildResult result = new BuildResult(request); 2058BuildResult requestResults = _resultsCache.GetResultsForConfiguration(buildRequest.ConfigurationId); 2089internal void RecordResultToCurrentCacheIfConfigNotInOverrideCache(BuildResult result) 2105private ScheduleResponse GetResponseForResult(int parentRequestNode, BuildRequest requestWhichGeneratedResult, BuildResult result) 2127private void LogRequestHandledFromCache(BuildRequest request, BuildResult result)
BackEnd\Components\Scheduler\ScheduleResponse.cs (4)
78internal readonly BuildResult BuildResult; 121private ScheduleResponse(BuildResult result) 182public static ScheduleResponse CreateReportResultResponse(int node, BuildResult resultToReport) 215public static ScheduleResponse CreateSubmissionCompleteResponse(BuildResult rootRequestResult)
BackEnd\Node\InProcNode.cs (1)
241private void OnRequestComplete(BuildRequest request, BuildResult result)
BackEnd\Node\OutOfProcNode.cs (1)
374private void OnRequestComplete(BuildRequest request, BuildResult result)
BackEnd\Shared\BuildRequest.cs (2)
84/// Whether or not the <see cref="BuildResult"/> issued in response to this request should include <see cref="BuildResult.ProjectStateAfterBuild"/>.
BackEnd\Shared\BuildRequestBlocker.cs (4)
66private BuildResult _partialBuildResult; 133public BuildRequestBlocker(int requestGlobalRequestId, string[] targetsInProgress, int unsubmittedRequestBlockingGlobalRequestId, string unsubmittedRequestBlockingTarget, BuildResult partialBuildResult) 221public BuildResult PartialBuildResult => _partialBuildResult; 236translator.Translate(ref _partialBuildResult, packetTranslator => BuildResult.FactoryForDeserialization(packetTranslator));
BackEnd\Shared\BuildRequestUnblocker.cs (5)
7using BuildResult = Microsoft.Build.Execution.BuildResult; 31private BuildResult _buildResult; 53internal BuildRequestUnblocker(BuildResult buildResult) 63internal BuildRequestUnblocker(BuildRequest parentRequest, BuildResult buildResult) 95public BuildResult Result
BackEnd\Shared\BuildResult.cs (10)
192internal BuildResult(BuildResult existingResults, string[] targetNames) 214internal BuildResult(BuildRequest request, BuildResult? existingResults, Exception? exception) 226internal BuildResult(BuildRequest request, BuildResult? existingResults, string[]? targetNames, Exception? exception) 256internal BuildResult(BuildResult result, int nodeRequestId) 271internal BuildResult(BuildResult result, int submissionId, int configurationId, int requestId, int parentRequestId, int nodeRequestId) 565public void MergeResults(BuildResult results) 687internal static BuildResult FactoryForDeserialization(ITranslator translator) 720internal BuildResult Clone() 722BuildResult result = new BuildResult 759private static ConcurrentDictionary<string, TargetResult> CreateTargetResultDictionaryWithContents(BuildResult existingResults, string[] targetNames)
Graph\GraphBuildResult.cs (5)
19internal GraphBuildResult(int submissionId, IReadOnlyDictionary<ProjectGraphNode, BuildResult> resultsByNode) 34ResultsByNode = ImmutableDictionary<ProjectGraphNode, BuildResult>.Empty; 64foreach (KeyValuePair<ProjectGraphNode, BuildResult> result in ResultsByNode) 79public IReadOnlyDictionary<ProjectGraphNode, BuildResult> ResultsByNode { get; } 87public BuildResult this[ProjectGraphNode node] => ResultsByNode[node];
Instance\ProjectInstance.cs (1)
2690BuildResult results;
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
98var result = buildManager.Build(parameters, request);
Microsoft.Build.CommandLine.UnitTests (1)
CommandLineSwitches_Tests.cs (1)
1158BuildResult buildResult = null;
Microsoft.Build.Engine.UnitTests (295)
BackEnd\BuildManager_Logging_Tests.cs (1)
125var result = submission.Execute();
BackEnd\BuildManager_Tests.cs (62)
135BuildResult result = _buildManager.Build(_parameters, data); 197var result = _buildManager.Build( 448BuildResult result = _buildManager.Build(customparameters, data); 515BuildResult result = _buildManager.Build(customparameters, data); 569BuildResult result = _buildManager.Build(_parameters, data); 609BuildResult result = _buildManager.Build(_parameters, data); 653BuildResult result = _buildManager.Build(_parameters, data); 715BuildResult result = _buildManager.Build(parameters, data); 785BuildResult result = _buildManager.Build(parameters, data); 836BuildResult result = _buildManager.Build(_parameters, data); 905BuildResult result = _buildManager.Build(customParameters, data); 934BuildResult result = _buildManager.Build(_parameters, data); 958BuildResult result = _buildManager.Build(_parameters, data); 990var result = buildManagerSession.BuildProjectFile(_env.CreateFile("build.proj", contents).Path); 1044BuildResult result = _buildManager.Build(_parameters, data); 1078BuildResult result = _buildManager.Build(_parameters, data); 1340BuildResult result = _buildManager.BuildRequest(data); 1343BuildResult result2 = _buildManager.BuildRequest(data2); 1379BuildResult result2 = _buildManager.BuildRequest(data2); 1381BuildResult result = submission1.BuildResult; 1560BuildResult result = asyncResult.BuildResult; 1596BuildResult result = asyncResult.BuildResult; 1636BuildResult result = asyncResult.BuildResult; 1674BuildResult result = asyncResult.BuildResult; 1716BuildResult result = asyncResult.BuildResult; 1749BuildResult result = asyncResult.BuildResult; 1778BuildResult result1 = _buildManager.BuildRequest(new BuildRequestData(instance, new[] { "target1" })); 1779BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(instance, new[] { "target2" })); 1812BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target2" })); 1815var result1 = submission.BuildResult; 1847BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target1" })); 1849var result1 = submission.BuildResult; 2164BuildResult result = _buildManager.Build(_parameters, data); 2171BuildResult result2 = newBuildManager.Build(_parameters, data); 2199BuildResult result = _buildManager.Build(_parameters, data); 2228BuildResult result = _buildManager.Build(_parameters, data); 2413BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2474BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2532BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2580BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2669BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2740BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2837BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 2937BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 3023BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 3092BuildResult result = _buildManager.PendBuildRequest(data).Execute(); 3223BuildResult br = submission.Execute(); 3234BuildResult br = submission.Execute(); 3310BuildResult br = submission.Execute(); 3321BuildResult br = submission.Execute(); 3411BuildResult result1 = _buildManager.BuildRequest(new BuildRequestData(instance, new[] { "target1" })); 3441BuildResult result1 = _buildManager.BuildRequest(new BuildRequestData(instance, new[] { "target1" })); 3472BuildResult buildResult = _buildManager.BuildRequest(new BuildRequestData(instance, new string[] { "target1", "target2" })); 3515var result = localBuildManager.PendBuildRequest(data).Execute(); 3723var results = submission.Execute(); 3807var result = submission.Execute(); 3875var results = submission.Execute(); 3964var result = submission.Execute(); 4048var result = _buildManager.Build(buildParameters, buildRequestData); 4167BuildResult result = _buildManager.Build(_parameters, data); 4414BuildResult result = _buildManager.BuildRequest(new BuildRequestData(instance, new[] { "target1" })); 4426BuildResult result = _buildManager.Build(_parameters, data);
BackEnd\BuildOMCompatibility_Tests.cs (2)
83=> VerifyPropertyExists(typeof(BuildResult), propertyName); 90=> VerifyMethodExists(typeof(BuildResult), methodName);
BackEnd\BuildRequestEngine_Tests.cs (11)
105BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time.")); 115BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 128BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 135IDictionary<int, BuildResult> results = _entry.Continue(); 136foreach (BuildResult configResult in results.Values) 147BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time.")); 159BuildResult result = new BuildResult(_entry.Request); 256private BuildResult _requestComplete_Result; 425BuildResult result = new BuildResult(_newRequest_Request.BuildRequests[0]); 490BuildResult result = new BuildResult(_newRequest_Request.BuildRequests[0]); 551private void Engine_RequestComplete(BuildRequest request, BuildResult result)
BackEnd\BuildRequestEntry_Tests.cs (12)
52IDictionary<int, BuildResult> results = entry.Continue(); 65BuildResult requiredResult = new BuildResult(waitingRequest); 81BuildResult result = new BuildResult(request); 105BuildResult requiredResult = new BuildResult(waitingRequest); 130BuildResult requiredResult1 = new BuildResult(waitingRequest1); 135BuildResult requiredResult2 = new BuildResult(waitingRequest2); 165BuildResult requiredResult1 = new BuildResult(waitingRequest1); 170BuildResult requiredResult2 = new BuildResult(waitingRequest2); 203BuildResult requiredResult = new BuildResult(request); 227BuildResult requiredResult = new BuildResult(request); 246BuildResult requiredResult = new BuildResult(request); 271BuildResult requiredResult = new BuildResult(randomRequest);
BackEnd\BuildResult_Tests.cs (29)
32BuildResult result2 = new BuildResult(request); 39BuildResult result1 = new BuildResult(request); 43BuildResult result2 = result1.Clone(); 64BuildResult result = new BuildResult(null!); 71BuildResult result = new BuildResult(request); 75BuildResult result2 = new BuildResult(request2); 83BuildResult result = new BuildResult(request); 95BuildResult result = new BuildResult(request); 108BuildResult result2 = new BuildResult(request2); 118BuildResult result = new BuildResult(request); 126BuildResult result = new BuildResult(request); 140BuildResult result = new BuildResult(request); 151BuildResult result = new BuildResult(request); 163BuildResult result = new BuildResult(request); 174BuildResult result = new BuildResult(request); 185BuildResult result = new BuildResult(request); 193BuildResult result = new BuildResult(request); 196BuildResult result2 = new BuildResult(request); 203BuildResult result3 = new BuildResult(request); 206BuildResult result4 = new BuildResult(request); 220BuildResult result = new BuildResult(request); 233BuildResult result = new BuildResult(request); 237BuildResult result2 = new BuildResult(request2); 247BuildResult result = new BuildResult(request); 258BuildResult result = new BuildResult(request); 314BuildResult result = new BuildResult(request, new BuildAbortedException()); 328INodePacket packet = BuildResult.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); 330BuildResult deserializedResult = (packet as BuildResult)!;
BackEnd\CacheAggregator_Tests.cs (14)
82var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 103var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 108var buildResult2 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 132var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 154var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 162var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 198var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 217var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 219var buildResult12 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.Invalid, null)); 229var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 231var buildResult22 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.Invalid, null)); 261foreach (var inputResult in resultsCache) 276private void AssertBuildResultsEquivalent(BuildResult inputResult, BuildResult aggregatedBuildResult)
BackEnd\CacheSerialization_Tests.cs (4)
48var buildResult1 = new BuildResult(request1); 49var buildResult2 = new BuildResult(request2); 50var buildResult3 = new BuildResult(request3); 139BuildResult buildResult = result.ResultsCache.GetResultsForConfiguration(1);
BackEnd\RequestBuilder_Tests.cs (13)
90BuildResult result = new BuildResult(request); 120BuildResult result = new BuildResult(request); 154BuildResult result = new BuildResult(request); 163BuildResult newResult = new BuildResult(_newBuildRequests_BuildRequests[0]); 193BuildResult result = new BuildResult(request); 202BuildResult newResult = new BuildResult(_newBuildRequests_BuildRequests[0]); 347internal void SetResultsToReturn(BuildResult result) 359public Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken) 365BuildResult result = new BuildResult(entry.Request); 370return Task<BuildResult>.FromResult(result); 390BuildResult result = new BuildResult(entry.Request); 395return Task<BuildResult>.FromResult(result); 399return Task<BuildResult>.FromResult(_cache.GetResultForRequest(entry.Request));
BackEnd\ResultsCache_Tests.cs (33)
36BuildRequest request = new BuildRequest(1 /* submissionId */, 0, 1, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null); BuildResult result = new BuildResult(request); 40BuildResult retrievedResult = cache.GetResultForRequest(request); 50BuildResult result = new BuildResult(request); 59BuildResult retrievedResult = cache.GetResultsForConfiguration(1); 70BuildResult result = new BuildResult(request); 79BuildResult result2 = new BuildResult(new BuildRequest(submissionId: 1, nodeRequestId: 0, configurationId: 2, new string[1] { "testTarget" }, null, BuildEventContext.Invalid, null)); 98BuildResult retrievedResult = cache.GetResultForRequest(request); 107BuildResult result = new BuildResult(request); 111BuildResult result2 = new BuildResult(request); 115BuildResult retrievedResult = cache.GetResultForRequest(request); 126BuildResult result = new BuildResult(request); 130BuildResult result2 = new BuildResult(request, new Exception("Test exception")); 133BuildResult retrievedResult = cache.GetResultForRequest(request); 145BuildResult result = new BuildResult(request); 157BuildResult result = new BuildResult(request); 161BuildResult result2 = new BuildResult(request); 165BuildResult retrievedResult = cache.GetResultForRequest(request); 181BuildResult result = new BuildResult(request); 233BuildResult resultForRequestWithNoBuildDataFlags = new(requestWithNoBuildDataFlags); 302BuildResult resultForRequestWithSubsetFlag1 = new(requestWithSubsetFlag1); 349BuildResult result = new BuildResult(request); 367var br1 = new BuildResult(request1); 375var br2 = new BuildResult(request2); 413var br1 = new BuildResult(request1); 414var br2 = new BuildResult(request2); 438var copiedBuildResult = resultsCache2.ResultsDictionary[configId]; 439var initialBuildResult = resultsCache1.ResultsDictionary[configId]; 459internal static bool AreResultsIdentical(BuildResult a, BuildResult b) 503internal static bool AreResultsIdenticalForTargets(BuildResult a, BuildResult b, string[] targets) 516private static bool AreResultsIdenticalForTarget(BuildResult a, BuildResult b, string target)
BackEnd\Scheduler_Tests.cs (16)
126BuildResult result = CacheBuildResult(request, "foo", BuildResultUtilities.GetSuccessResult()); 150BuildResult result = CacheBuildResult(request, "foo", BuildResultUtilities.GetStopWithErrorResult()); 180BuildResult childResult = CacheBuildResult(childRequest, "foo", BuildResultUtilities.GetSuccessResult()); 224BuildResult result2 = CacheBuildResult(request2, "bar", BuildResultUtilities.GetSuccessResult()); 244BuildResult result1 = CacheBuildResult(request1, "foo", BuildResultUtilities.GetSuccessResult()); 247BuildResult result2 = CacheBuildResult(request2, "bar", BuildResultUtilities.GetSuccessResult()); 624BuildResult result1 = CacheBuildResult(request1, "foo", BuildResultUtilities.GetStopWithErrorResult()); 644BuildResult result2 = CacheBuildResult(request2, "bar", BuildResultUtilities.GetStopWithErrorResult()); 663BuildResult result2 = CacheBuildResult(request2, "bar", BuildResultUtilities.GetStopWithErrorResult()); 685BuildResult result = CreateBuildResult(request, "foo", BuildResultUtilities.GetSuccessResult()); 716BuildResult result = _buildManager.Build(_parameters, data); 756private BuildResult CacheBuildResult(BuildRequest request, string target, WorkUnitResult workUnitResult, ResultsCache resultsCache = null) 758BuildResult result = CreateBuildResult(request, target, workUnitResult); 774private BuildResult CreateBuildResult(BuildRequest request, string target, WorkUnitResult workUnitResult) 776BuildResult result = new BuildResult(request); 890var buildResult = new BuildResult(_defaultParentRequest);
BackEnd\SdkResultOutOfProc_Tests.cs (4)
128BuildResult result = _buildManager.Build(customparameters, data); 173BuildResult result = _buildManager.Build(customparameters, data); 183private void ValidateRanInSeparateProcess(BuildResult result) 195private void ValidateResolverResults(BuildResult result)
BackEnd\TargetBuilder_Tests.cs (38)
107BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 127BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 153BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 182BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 273var result = buildSession.BuildProjectFile(files.ProjectFile); 368BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 508BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 534BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 560BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 590BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 625BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 657BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 688BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 714BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 750BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 776BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 803BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 833BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 877BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 904BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 931BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 963BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 984BuildResult result = BuildSimpleProject(projectBody, new (string name, TargetBuiltReason reason)[] { ("Build", TargetBuiltReason.None) }, failTaskNumber: 2 /* Fail on After */); 1009BuildResult result = BuildSimpleProject(projectBody, new (string name, TargetBuiltReason reason)[] { ("Build", TargetBuiltReason.None) }, failTaskNumber: 3 /* Fail on After2 */); 1028BuildResult result = BuildSimpleProject(projectBody, new (string name, TargetBuiltReason reason)[] { ("Build", TargetBuiltReason.None) }, failTaskNumber: int.MaxValue /* no task failure needed here */); 1061BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1096BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1147BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1207BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1249BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1295BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1326BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1401BuildResult result = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), source.Token).Result; 1433var buildResult = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1459var buildResult = builder.BuildTargets(GetProjectLoggingContext(entry), entry, this, target, CreateStandardLookup(project), CancellationToken.None).Result; 1482Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 1490Task IRequestBuilderCallback.BlockOnTargetInProgress(int blockingRequestId, string blockingTarget, BuildResult partialBuildResult) 1703private BuildResult BuildSimpleProject(string projectBody, (string name, TargetBuiltReason reason)[] targets, int failTaskNumber)
BackEnd\TargetEntry_Tests.cs (3)
881BuildResult result = manager.Build(parameters, data); 940Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 948Task IRequestBuilderCallback.BlockOnTargetInProgress(int blockingRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\TaskBuilder_Tests.cs (3)
187BuildResult result = asyncResult.BuildResult; 942Task<BuildResult[]> IRequestBuilderCallback.BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 950Task IRequestBuilderCallback.BlockOnTargetInProgress(int blockingRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\TaskHost_Tests.cs (8)
82BuildResult buildResult = new BuildResult(buildRequest, false); 84_mockRequestCallback = new MockIRequestBuilderCallback(new BuildResult[] { buildResult }); 1348private BuildResult[] _buildResultsToReturn; 1373internal MockIRequestBuilderCallback(BuildResult[] buildResultsToReturn) 1406public BuildResult[] BuildResultsToReturn 1415public Task<BuildResult[]> BuildProjects(string[] projectFiles, PropertyDictionary<ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults, bool skipNonexistentTargets) 1417return Task<BuildResult[]>.FromResult(_buildResultsToReturn); 1469public Task BlockOnTargetInProgress(int blockingRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\TaskRegistry_Tests.cs (1)
676var result = buildManager.Build(
Construction\SolutionProjectGenerator_Tests.cs (2)
2131BuildResult result = buildManager.Build(parameters, request); 2219BuildResult result = buildManager.Build(parameters, request);
EndToEndCondition_Tests.cs (2)
35BuildResult result = Helpers.BuildProjectContentUsingBuildManager($@"<Project> 58BuildResult result = Helpers.BuildProjectContentUsingBuildManager($@"<Project>
EvaluationProfiler_Tests.cs (1)
289var result = _buildManager.Build(parameters, buildRequestData);
Graph\IsolateProjects_Tests.cs (5)
329Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 341BuildResult[] declaredReferenceBuildResults = deserializedOutputCacheDeclaredReference.ResultsCache.GetEnumerator().ToArray(); 342BuildResult[] rootBuildResults = deserializedOutputCacheRoot.ResultsCache.GetEnumerator().ToArray(); 507Action<BuildResult, MockLogger> assert, 554var result = buildManagerSession.BuildProjectFile(rootProjectFile, targets);
Graph\ProjectGraph_Tests.cs (4)
1555Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1563foreach (KeyValuePair<string, (BuildResult Result, MockLogger Logger)> result in results) 1605Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1614BuildResult project1BuildResult = results["1"].Result;
Graph\ResultCacheBasedBuilds_Tests.cs (9)
62var result = BuildProjectFileUsingBuildManager( 84var result = BuildProjectFileUsingBuildManager( 131var result = BuildProjectFileUsingBuildManager( 163var resultFromCachedBuild = BuildProjectFileUsingBuildManager( 362var rootNodeBuildResult = buildResults.First(); 423internal static Dictionary<string, (BuildResult Result, MockLogger Logger)> BuildUsingCaches( 437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count); 470var result = BuildProjectFileUsingBuildManager( 559var result = BuildProjectFileUsingBuildManager(
InternalEngineHelpers.cs (2)
156internal static void AssertBuildResultsEqual(BuildResult actualBuildResult, BuildResult expectedBuildResult)
ProjectCache\ProjectCacheTests.cs (16)
495var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 502var buildResult = buildSession.BuildProjectFile(node.ProjectInstance.FullPath); 518(MockLogger logger, ProjectGraph graph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) = BuildGraphVsScenario(testData, buildParameters); 542private (MockLogger logger, ProjectGraph projectGraph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) BuildGraphVsScenario( 547var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 584BuildResult buildResult = buildSession.BuildProjectFile( 702var buildResult = task.Result; 776IReadOnlyDictionary<ProjectGraphNode, BuildResult> projectPathToBuildResults, 838BuildResult buildResult, 895BuildResult buildResult = buildSession.BuildProjectFile(project1.Path); 1131var buildResult = buildSession.BuildProjectFile(project.Path); 1426Task<BuildResult> BuildProjectFileAsync(int projectNumber) 1475var buildResultTasks = new List<Task<BuildResult>>(); 1482Task<BuildResult> buildResultTask = buildSession.BuildProjectFileAsync( 1621var buildTasks = new List<Task<BuildResult>>(); 1627foreach (var buildResult in buildTasks.Select(buildTask => buildTask.Result))
Microsoft.Build.Tasks.UnitTests (3)
CreateItem_Tests.cs (1)
216BuildResult result = BuildManager.DefaultBuildManager.Build(parameters, data);
Exec_Tests.cs (2)
967var result = buildManager.Build(parameters, request); 1024var result = buildManager.Build(parameters, request);
Microsoft.Build.UnitTests.Shared (17)
ObjectModelHelpers.cs (17)
163public static void ShouldHaveSucceeded(this BuildResult result) 177public static void ShouldHaveFailed(this BuildResult result, string exceptionMessageSubstring = null) 1023BuildResult result = BuildManager.DefaultBuildManager.Build(parameters, data); 1390var result = BuildProjectContentUsingBuildManager(content, logger); 1397public static BuildResult BuildProjectContentUsingBuildManager([StringSyntax(StringSyntaxAttribute.Xml)] string content, MockLogger logger, BuildParameters parameters = null) 1410public static BuildResult BuildProjectFileUsingBuildManager( 1434var result = buildManager.Build( 1493BuildResult buildResult = buildManager.Build(parameters, data); 1515private static void VerifyErrorLoggedForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName, string testProjectFile) 1524private static void VerifyWarningLoggedForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName, string testProjectFile) 1532private static void VerifyNoErrorsAndWarningsForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName) 1539private static void VerifySuccessOfBuildAndTargetResults(BuildResult buildResult, string targetName) 2094public BuildResult BuildProjectFile( 2103public async Task<BuildResult> BuildProjectFileAsync( 2117public async Task<BuildResult> BuildAsync(BuildRequestData requestData) 2119var completion = new TaskCompletionSource<BuildResult>(); 2129public BuildResult Build(BuildRequestData requestData) => _buildManager.BuildRequest(requestData);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Build\ProjectBuildManager.cs (5)
264var result = await BuildAsync(buildRequestData, cancellationToken).ConfigureAwait(false); 280private static async Task<MSB.Execution.BuildResult> BuildAsync(MSB.Execution.BuildRequestData requestData, CancellationToken cancellationToken) 289private static Task<MSB.Execution.BuildResult> BuildAsync(MSB.Execution.BuildManager buildManager, MSB.Execution.BuildRequestData requestData, CancellationToken cancellationToken) 291var taskSource = new TaskCompletionSource<MSB.Execution.BuildResult>(); 317var result = sub.BuildResult;
MSBuild (6)
JsonOutputFormatter.cs (1)
123internal void AddTargetResultsInJsonFormat(string[] targetNames, BuildResult result)
XMake.cs (5)
735BuildResult result = null; 1106private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream) 1294ref BuildResult result, 1800private static BuildResult ExecuteBuild(BuildManager buildManager, BuildRequestData request) 1838private static BuildResult ExecuteRestore(string projectFile, string toolsVersion, BuildManager buildManager, Dictionary<string, string> globalProperties, bool saveProjectResult = false)