2 writes to _requestEntry
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
209
_requestEntry
= entry;
897
_requestEntry
= null;
74 references to _requestEntry
Microsoft.Build (74)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (74)
175
return
_requestEntry
;
204
ErrorUtilities.VerifyThrow(
_requestEntry
== null, "requestEntry not null");
210
_requestEntry
.Continue();
230
_continueResults =
_requestEntry
.Continue();
231
ErrorUtilities.VerifyThrow(_blockType == BlockType.BlockedOnTargetInProgress || _blockType == BlockType.Yielded || (_continueResults != null), "Unexpected null results for request {0} (nr {1})",
_requestEntry
.Request.GlobalRequestId,
_requestEntry
.Request.NodeRequestId);
349
projectFiles[i] = Path.Combine(
_requestEntry
.ProjectRootDirectory, projectFiles[i]);
359
if (explicitToolsVersion == null &&
_requestEntry
.RequestConfiguration.ExplicitToolsVersionSpecified)
361
explicitToolsVersion =
_requestEntry
.RequestConfiguration.ToolsVersion;
369
bool skipStaticGraphIsolationConstraints = (isolateProjects != ProjectIsolationMode.False &&
_requestEntry
.RequestConfiguration.ShouldSkipIsolationConstraintsForReference(config.ProjectFullPath))
408
if (IsBuilderUsingLegacyThreadingSemantics(_componentHost,
_requestEntry
))
440
RaiseOnBlockedRequest(
_requestEntry
.Request.GlobalRequestId, null);
449
RaiseOnBlockedRequest(
_requestEntry
.Request.GlobalRequestId, String.Empty);
506
RaiseResourceRequest(ResourceRequest.CreateAcquireRequest(
_requestEntry
.Request.GlobalRequestId, requestedCores, waitForCores));
540
RaiseResourceRequest(ResourceRequest.CreateReleaseRequest(
_requestEntry
.Request.GlobalRequestId, coresToRelease));
648
if (IsBuilderUsingLegacyThreadingSemantics(_componentHost,
_requestEntry
))
668
return componentHostSnapshot.LegacyThreadingData.GetLegacyThreadInactiveTask(
_requestEntry
.Request.SubmissionId);
681
ErrorUtilities.VerifyThrow(_componentHost.LegacyThreadingData.MainThreadSubmissionId !=
_requestEntry
.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request.");
746
ErrorUtilities.VerifyThrow(
_requestEntry
.State == BuildRequestEntryState.Ready, "Entry is not in the Ready state, it is in the {0} state.",
_requestEntry
.State);
754
ErrorUtilities.VerifyThrow(
_requestEntry
.State == BuildRequestEntryState.Active, "Entry is not in the Active state, it is in the {0} state.",
_requestEntry
.State);
762
ErrorUtilities.VerifyThrow(
_requestEntry
.State == BuildRequestEntryState.Active ||
_requestEntry
.State == BuildRequestEntryState.Waiting,
763
"Entry is not in the Active or Waiting state, it is in the {0} state.",
_requestEntry
.State);
866
result = new BuildResult(
_requestEntry
.Request, thrownException);
895
BuildRequestEntry entryToComplete =
_requestEntry
;
963
if (IsBuilderUsingLegacyThreadingSemantics(_componentHost,
_requestEntry
))
965
handle = RequestBuilder.WaitWithBuilderThreadStart(handles, true, _componentHost.LegacyThreadingData,
_requestEntry
.Request.SubmissionId);
1058
OnNewBuildRequests?.Invoke(
_requestEntry
, requests);
1074
OnBuildRequestBlocked?.Invoke(
_requestEntry
, blockingGlobalRequestId, blockingTarget, partialBuildResult);
1097
NativeMethodsShared.SetCurrentDirectory(
_requestEntry
.ProjectRootDirectory);
1109
bool isRestoring =
_requestEntry
.RequestConfiguration.GlobalProperties[MSBuildConstants.MSBuildIsRestoring] is not null;
1122
MSBuildEventSource.Log.BuildProjectStart(
_requestEntry
.RequestConfiguration.ProjectFullPath);
1127
if (!
_requestEntry
.RequestConfiguration.IsLoaded)
1131
new CheckLoggingContext(_nodeLoggingContext.LoggingService,
_requestEntry
.Request.BuildEventContext),
1132
_requestEntry
.RequestConfiguration.ProjectFullPath);
1134
_requestEntry
.RequestConfiguration.LoadProjectIntoConfiguration(
1146
_requestEntry
.Request,
1147
_requestEntry
.RequestConfiguration.ProjectFullPath,
1148
_requestEntry
.RequestConfiguration.ToolsVersion);
1155
_requestEntry
.Request.BuildEventContext);
1167
_requestEntry
.RequestConfiguration.RetrieveFromCache();
1168
if (
_requestEntry
.RequestConfiguration.Project.UsingDifferentToolsVersionFromProjectFile)
1172
_requestEntry
.RequestConfiguration.Project.OriginalProjectToolsVersion,
1173
_requestEntry
.RequestConfiguration.Project.ToolsVersion);
1176
_requestEntry
.Request.BuildEventContext = _projectLoggingContext.BuildEventContext;
1179
(string name, TargetBuiltReason reason)[] allTargets =
_requestEntry
.RequestConfiguration
1180
.GetTargetsUsedToBuildRequest(
_requestEntry
.Request).ToArray();
1183
_requestEntry
.RequestConfiguration.Project.ProjectFileLocation, "NoTargetSpecified");
1193
if ((
_requestEntry
.RequestConfiguration.ResultsNodeId != Scheduler.InvalidNodeId) &&
1194
(
_requestEntry
.RequestConfiguration.ResultsNodeId != _componentHost.BuildParameters.NodeId))
1201
_requestEntry
.RequestConfiguration.ResultsNodeId == _componentHost.BuildParameters.NodeId,
1203
_requestEntry
.RequestConfiguration.ConfigurationId,
1204
_requestEntry
.RequestConfiguration.ResultsNodeId);
1208
BuildResult result = await _targetBuilder.BuildTargets(_projectLoggingContext,
_requestEntry
, this,
1209
allTargets,
_requestEntry
.RequestConfiguration.BaseLookup, _cancellationTokenSource.Token);
1211
result =
_requestEntry
.Request.ProxyTargets == null
1217
MSBuildEventSource.Log.BuildProjectStop(
_requestEntry
.RequestConfiguration.ProjectFullPath,
1227
_requestEntry
.RequestConfiguration.ProjectFullPath);
1232
var proxyTargetMapping =
_requestEntry
.Request.ProxyTargets.ProxyTargetToRealTargetMap;
1235
var cachedResult = resultsCache.GetResultsForConfiguration(
_requestEntry
.Request.ConfigurationId);
1267
_requestEntry
.RequestConfiguration.SavedCurrentDirectory = NativeMethodsShared.GetCurrentDirectory();
1268
_requestEntry
.RequestConfiguration.SavedEnvironmentVariables = CommunicationsUtilities.GetEnvironmentVariables();
1274
(ProjectStartedEventArgs args, ProjectLoggingContext ctx) = _nodeLoggingContext.CreateProjectLoggingContext(
_requestEntry
);
1294
_requestEntry
.RequestConfiguration.ProjectFullPath);
1302
if (
_requestEntry
.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.BuildParameters.SaveOperatingEnvironment)
1305
SetEnvironmentVariableBlock(
_requestEntry
.RequestConfiguration.SavedEnvironmentVariables);
1321
ErrorUtilities.VerifyThrow(
_requestEntry
.RequestConfiguration.SavedCurrentDirectory != null, "Current directory not previously saved.");
1322
ErrorUtilities.VerifyThrow(
_requestEntry
.RequestConfiguration.SavedEnvironmentVariables != null, "Current environment not previously saved.");
1325
SetEnvironmentVariableBlock(
_requestEntry
.RequestConfiguration.SavedEnvironmentVariables);
1326
NativeMethodsShared.SetCurrentDirectory(
_requestEntry
.RequestConfiguration.SavedCurrentDirectory);
1386
ProjectInstance project =
_requestEntry
?.RequestConfiguration?.Project;
1426
ProjectInstance project =
_requestEntry
?.RequestConfiguration?.Project;