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