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)
175return _requestEntry; 204ErrorUtilities.VerifyThrow(_requestEntry == null, "requestEntry not null"); 210_requestEntry.Continue(); 230_continueResults = _requestEntry.Continue(); 231ErrorUtilities.VerifyThrow(_blockType == BlockType.BlockedOnTargetInProgress || _blockType == BlockType.Yielded || (_continueResults != null), "Unexpected null results for request {0} (nr {1})", _requestEntry.Request.GlobalRequestId, _requestEntry.Request.NodeRequestId); 349projectFiles[i] = Path.Combine(_requestEntry.ProjectRootDirectory, projectFiles[i]); 359if (explicitToolsVersion == null && _requestEntry.RequestConfiguration.ExplicitToolsVersionSpecified) 361explicitToolsVersion = _requestEntry.RequestConfiguration.ToolsVersion; 369bool skipStaticGraphIsolationConstraints = (isolateProjects != ProjectIsolationMode.False && _requestEntry.RequestConfiguration.ShouldSkipIsolationConstraintsForReference(config.ProjectFullPath)) 408if (IsBuilderUsingLegacyThreadingSemantics(_componentHost, _requestEntry)) 440RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, null); 449RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, String.Empty); 506RaiseResourceRequest(ResourceRequest.CreateAcquireRequest(_requestEntry.Request.GlobalRequestId, requestedCores, waitForCores)); 540RaiseResourceRequest(ResourceRequest.CreateReleaseRequest(_requestEntry.Request.GlobalRequestId, coresToRelease)); 648if (IsBuilderUsingLegacyThreadingSemantics(_componentHost, _requestEntry)) 668return componentHostSnapshot.LegacyThreadingData.GetLegacyThreadInactiveTask(_requestEntry.Request.SubmissionId); 681ErrorUtilities.VerifyThrow(_componentHost.LegacyThreadingData.MainThreadSubmissionId != _requestEntry.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request."); 746ErrorUtilities.VerifyThrow(_requestEntry.State == BuildRequestEntryState.Ready, "Entry is not in the Ready state, it is in the {0} state.", _requestEntry.State); 754ErrorUtilities.VerifyThrow(_requestEntry.State == BuildRequestEntryState.Active, "Entry is not in the Active state, it is in the {0} state.", _requestEntry.State); 762ErrorUtilities.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); 866result = new BuildResult(_requestEntry.Request, thrownException); 895BuildRequestEntry entryToComplete = _requestEntry; 963if (IsBuilderUsingLegacyThreadingSemantics(_componentHost, _requestEntry)) 965handle = RequestBuilder.WaitWithBuilderThreadStart(handles, true, _componentHost.LegacyThreadingData, _requestEntry.Request.SubmissionId); 1058OnNewBuildRequests?.Invoke(_requestEntry, requests); 1074OnBuildRequestBlocked?.Invoke(_requestEntry, blockingGlobalRequestId, blockingTarget, partialBuildResult); 1097NativeMethodsShared.SetCurrentDirectory(_requestEntry.ProjectRootDirectory); 1109bool isRestoring = _requestEntry.RequestConfiguration.GlobalProperties[MSBuildConstants.MSBuildIsRestoring] is not null; 1122MSBuildEventSource.Log.BuildProjectStart(_requestEntry.RequestConfiguration.ProjectFullPath); 1127if (!_requestEntry.RequestConfiguration.IsLoaded) 1131new 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(); 1168if (_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"); 1193if ((_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); 1208BuildResult result = await _targetBuilder.BuildTargets(_projectLoggingContext, _requestEntry, this, 1209allTargets, _requestEntry.RequestConfiguration.BaseLookup, _cancellationTokenSource.Token); 1211result = _requestEntry.Request.ProxyTargets == null 1217MSBuildEventSource.Log.BuildProjectStop(_requestEntry.RequestConfiguration.ProjectFullPath, 1227_requestEntry.RequestConfiguration.ProjectFullPath); 1232var proxyTargetMapping = _requestEntry.Request.ProxyTargets.ProxyTargetToRealTargetMap; 1235var 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); 1302if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.BuildParameters.SaveOperatingEnvironment) 1305SetEnvironmentVariableBlock(_requestEntry.RequestConfiguration.SavedEnvironmentVariables); 1321ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedCurrentDirectory != null, "Current directory not previously saved."); 1322ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null, "Current environment not previously saved."); 1325SetEnvironmentVariableBlock(_requestEntry.RequestConfiguration.SavedEnvironmentVariables); 1326NativeMethodsShared.SetCurrentDirectory(_requestEntry.RequestConfiguration.SavedCurrentDirectory); 1386ProjectInstance project = _requestEntry?.RequestConfiguration?.Project; 1426ProjectInstance project = _requestEntry?.RequestConfiguration?.Project;