1 write to RequestConfiguration
Microsoft.Build (1)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
131RequestConfiguration = requestConfiguration;
91 references to RequestConfiguration
Microsoft.Build (85)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
917entry.RequestConfiguration.RetrieveFromCache();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (9)
151(_projectRootDirectory = Path.GetDirectoryName(RequestConfiguration.ProjectFullPath)); 217ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Must be in Active state to wait for blocking request. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 293return RequestConfiguration.ActivelyBuildingTargets.Keys.ToArray(); 307ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting || _outstandingRequests == null, "Entry must be in the Waiting state to report results, or we must have flushed our requests due to an error. Config: {0} State: {1} Requests: {2}", RequestConfiguration.ConfigurationId, State, _outstandingRequests != null); 385ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting, "Entry must be in the waiting state to be unblocked. Config: {0} State: {1} Request: {2}", RequestConfiguration.ConfigurationId, State, Request.GlobalRequestId); 386ErrorUtilities.VerifyThrow(_blockingGlobalRequestId != BuildRequest.InvalidGlobalRequestId, "Entry must be waiting on another request to be unblocked. Config: {0} Request: {1}", RequestConfiguration.ConfigurationId, Request.GlobalRequestId); 405ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Ready, "Entry must be in the Ready state. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 482ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Entry must be active before it can be Completed successfully. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 500ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active || State == BuildRequestEntryState.Waiting, "Must be in Active or Waiting state to wait for results. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State);
BackEnd\Components\Logging\ProjectLoggingContext.cs (10)
38requestEntry.RequestConfiguration.ProjectFullPath, 40requestEntry.RequestConfiguration.ToolsVersion, 41requestEntry.RequestConfiguration.Project.PropertiesToBuildWith, 42requestEntry.RequestConfiguration.Project.ItemsToBuildWith, 44requestEntry.RequestConfiguration.Project.EvaluationId, 85requestEntry.RequestConfiguration.ProjectFullPath, 87requestEntry.RequestConfiguration.ToolsVersion, 88requestEntry.RequestConfiguration.Project.PropertiesToBuildWith, 89requestEntry.RequestConfiguration.Project.ItemsToBuildWith, 91requestEntry.RequestConfiguration.Project.EvaluationId,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (37)
359if (explicitToolsVersion == null && _requestEntry.RequestConfiguration.ExplicitToolsVersionSpecified) 361explicitToolsVersion = _requestEntry.RequestConfiguration.ToolsVersion; 369bool skipStaticGraphIsolationConstraints = (isolateProjects != ProjectIsolationMode.False && _requestEntry.RequestConfiguration.ShouldSkipIsolationConstraintsForReference(config.ProjectFullPath)) 905entryToComplete.RequestConfiguration.SavedCurrentDirectory = NativeMethodsShared.GetCurrentDirectory(); 906entryToComplete.RequestConfiguration.SavedEnvironmentVariables = CommunicationsUtilities.GetEnvironmentVariables(); 1109bool isRestoring = _requestEntry.RequestConfiguration.GlobalProperties[MSBuildConstants.MSBuildIsRestoring] is not null; 1122MSBuildEventSource.Log.BuildProjectStart(_requestEntry.RequestConfiguration.ProjectFullPath); 1127if (!_requestEntry.RequestConfiguration.IsLoaded) 1132_requestEntry.RequestConfiguration.ProjectFullPath); 1134_requestEntry.RequestConfiguration.LoadProjectIntoConfiguration( 1147_requestEntry.RequestConfiguration.ProjectFullPath, 1148_requestEntry.RequestConfiguration.ToolsVersion); 1167_requestEntry.RequestConfiguration.RetrieveFromCache(); 1168if (_requestEntry.RequestConfiguration.Project.UsingDifferentToolsVersionFromProjectFile) 1172_requestEntry.RequestConfiguration.Project.OriginalProjectToolsVersion, 1173_requestEntry.RequestConfiguration.Project.ToolsVersion); 1179(string name, TargetBuiltReason reason)[] allTargets = _requestEntry.RequestConfiguration 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); 1209allTargets, _requestEntry.RequestConfiguration.BaseLookup, _cancellationTokenSource.Token); 1217MSBuildEventSource.Log.BuildProjectStop(_requestEntry.RequestConfiguration.ProjectFullPath, 1227_requestEntry.RequestConfiguration.ProjectFullPath); 1267_requestEntry.RequestConfiguration.SavedCurrentDirectory = NativeMethodsShared.GetCurrentDirectory(); 1268_requestEntry.RequestConfiguration.SavedEnvironmentVariables = CommunicationsUtilities.GetEnvironmentVariables(); 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;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (12)
125BuildRequestConfiguration configuration = _requestEntry.RequestConfiguration; 417_requestEntry.RequestConfiguration.Project.Targets.ContainsKey(currentTargetEntry.Name), 431IList<TargetSpecification> afterTargets = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunAfter(currentTargetEntry.Name); 452IList<TargetSpecification> beforeTargets = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunBefore(currentTargetEntry.Name); 482_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId; 505_requestEntry.RequestConfiguration.ActivelyBuildingTargets.Remove(currentTargetEntry.Name); 522_requestEntry.RequestConfiguration.ActivelyBuildingTargets.Remove(currentTargetEntry.Name); 620_requestEntry.RequestConfiguration.ActivelyBuildingTargets.Remove(topEntry.Name); 681if (_requestEntry.RequestConfiguration.ActivelyBuildingTargets.TryGetValue(targetSpecification.TargetName, out idOfAlreadyBuildingRequest)) 690if (_requestEntry.RequestConfiguration.ActivelyBuildingTargets.ContainsKey(targetSpecification.TargetName)) 765if (_requestEntry.RequestConfiguration.ActivelyBuildingTargets.TryGetValue(targetName, out idOfAlreadyBuildingRequest)) 797IList<TargetSpecification> targetsWhichRunAfter = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunAfter(targetToCheck);
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
437string projectFullPath = requestEntry.RequestConfiguration.ProjectFullPath; 481TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 936_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.TargetName, out _target); 940_targetSpecification.ReferenceLocation ?? _requestEntry.RequestConfiguration.Project.ProjectFileLocation,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (10)
167_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name, _taskNode.Name); 170_projectFullPath = requestEntry.RequestConfiguration.Project.FullPath; 308_taskExecutionHost.InitializeForTask(taskHost, _targetLoggingContext, _buildRequestEntry.RequestConfiguration.Project, _taskNode.Name, _taskNode.Location, _taskHostObject, _continueOnError != ContinueOnError.ErrorAndStop, 639_buildRequestEntry.RequestConfiguration.Project, 802using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.Name, _taskNode.Name, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.Project.PropertiesToBuildWith)) 832bucket.Lookup.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable)); 1028var projectReferenceItems = _buildRequestEntry.RequestConfiguration.Project.GetItems(ItemTypeNames.ProjectReference); 1048|| _buildRequestEntry.RequestConfiguration.ShouldSkipIsolationConstraintsForReference(normalizedMSBuildProject))) 1191ProjectItemInstanceFactory itemFactory = new ProjectItemInstanceFactory(_buildRequestEntry.RequestConfiguration.Project, itemName); 1209lookup.SetProperty(ProjectPropertyInstance.Create(propertyName, taskParameterValue, taskPropertyInstance.TaskParameterLocation, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
687return _requestEntry.RequestConfiguration.GlobalProperties.ToDictionary(); 1183propertyDictionaries[i] = new PropertyDictionary<ProjectPropertyInstance>(_requestEntry.RequestConfiguration.Project.GlobalPropertiesDictionary);
Microsoft.Build.Engine.UnitTests (6)
BackEnd\BuildRequestEngine_Tests.cs (2)
101_entry.RequestConfiguration.Project = CreateStandinProject(); 163result.AddResultsForTarget(target, new TargetResult(new TaskItem[1] { new TaskItem("include", _entry.RequestConfiguration.ProjectFullPath) }, completeSuccess ? BuildResultUtilities.GetSuccessResult() : BuildResultUtilities.GetStopWithErrorResult()));
BackEnd\IntrinsicTask_Tests.cs (2)
3959entry.RequestConfiguration.Project = projectInstance; 3994entry.RequestConfiguration.Project = projectInstance;
BackEnd\MockTaskBuilder.cs (2)
102lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File)); 106lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File));