7 implementations of BuildParameters
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
385BuildParameters? IBuildComponentHost.BuildParameters => _buildParameters;
BackEnd\Node\OutOfProcNode.cs (1)
207BuildParameters IBuildComponentHost.BuildParameters => _buildParameters;
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
161public BuildParameters BuildParameters
BackEnd\NodeEndpointInProc_Tests.cs (1)
69public BuildParameters BuildParameters
BackEnd\TargetBuilder_Tests.cs (1)
1832public BuildParameters BuildParameters
BackEnd\TargetEntry_Tests.cs (1)
1303public BuildParameters BuildParameters
BackEnd\TaskBuilder_Tests.cs (1)
1349public BuildParameters BuildParameters
97 references to BuildParameters
Microsoft.Build (97)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
355TraceEngine("Request {0}({1}) (nr {2}) retrieved results for configuration {3} from node {4} for transfer.", request.GlobalRequestId, request.ConfigurationId, request.NodeRequestId, request.ConfigurationId, _componentHost.BuildParameters.NodeId); 364if (_componentHost.BuildParameters.NodeId != Scheduler.InProcNodeId) 429TraceEngine("Request {0}({1}) (nr {2}) has retrieved the results for configuration {3} and cached them on node {4} (UBR).", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, entry.Request.ConfigurationId, _componentHost.BuildParameters.NodeId); 446config.ResultsNodeId = _componentHost.BuildParameters.NodeId; 545skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1217skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss());
BackEnd\Components\Communications\NodeEndpointInProc.cs (2)
359CultureInfo culture = _componentHost.BuildParameters.Culture; 360CultureInfo uiCulture = _componentHost.BuildParameters.UICulture;
BackEnd\Components\Communications\NodeManager.cs (1)
98if ((nodeAffinity == NodeAffinity.Any || nodeAffinity == NodeAffinity.InProc) && !_componentHost!.BuildParameters.DisableInProcNode)
BackEnd\Components\Communications\NodeProviderInProc.cs (5)
223if (_componentHost.BuildParameters.SaveOperatingEnvironment) 314if ((_componentHost.BuildParameters.SaveOperatingEnvironment) && 322if (!_componentHost.BuildParameters.EnableNodeReuse) 376CultureInfo culture = _componentHost.BuildParameters.Culture; 377CultureInfo uiCulture = _componentHost.BuildParameters.UICulture;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (9)
55return ComponentHost.BuildParameters.MaxNodeCount - _nodeContexts.Count; 85if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount) 87ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.BuildParameters.MaxNodeCount, _nodeContexts.Count); 97string commandLineArgs = $"/nologo /nodemode:1 /nodeReuse:{ComponentHost.BuildParameters.EnableNodeReuse.ToString().ToLower()} /low:{ComponentHost.BuildParameters.LowPriority.ToString().ToLower()}"; 101Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority)); 111throw new BuildAbortedException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CouldNotConnectToMSBuildExe", ComponentHost.BuildParameters.NodeExeLocation)); 160bool nodeReuse = ComponentHost.BuildParameters?.EnableNodeReuse ?? true;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
204msbuildLocation = _componentHost.BuildParameters.NodeExeLocation; 226if (_componentHost.BuildParameters.EnableNodeReuse)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
215ShutdownAllNodes(ComponentHost.BuildParameters.EnableNodeReuse, NodeContextTerminated); 541string commandLineArgs = $" /nologo /nodemode:2 /nodereuse:{ComponentHost.BuildParameters.EnableNodeReuse} /low:{ComponentHost.BuildParameters.LowPriority} ";
BackEnd\Components\Logging\LoggingService.cs (5)
863_maxCPUCount = buildComponentHost.BuildParameters.MaxNodeCount; 865Question = buildComponentHost.BuildParameters.Question; 869_onlyLogCriticalEvents = buildComponentHost.BuildParameters.OnlyLogCriticalEvents; 1515CultureInfo.CurrentCulture = _componentHost.BuildParameters.Culture; 1516CultureInfo.CurrentUICulture = _componentHost.BuildParameters.UICulture;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
354IDictionary<string, string> environmentProperties = _componentHost?.BuildParameters?.BuildProcessEnvironment;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (14)
367BuildRequestConfiguration config = new BuildRequestConfiguration(data, _componentHost.BuildParameters.DefaultToolsVersion); 368ProjectIsolationMode isolateProjects = _componentHost.BuildParameters.ProjectIsolationMode; 573return host.BuildParameters.LegacyThreadingSemantics && (host.LegacyThreadingData.MainThreadSubmissionId == entry.Request.SubmissionId); 719CultureInfo.CurrentCulture = _componentHost.BuildParameters.Culture; 720CultureInfo.CurrentUICulture = _componentHost.BuildParameters.UICulture; 722Thread.CurrentThread.Priority = _componentHost.BuildParameters.BuildThreadPriority; 903if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1095if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1194(_requestEntry.RequestConfiguration.ResultsNodeId != _componentHost.BuildParameters.NodeId)) 1201_requestEntry.RequestConfiguration.ResultsNodeId == _componentHost.BuildParameters.NodeId, 1265if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1302if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.BuildParameters.SaveOperatingEnvironment) 1310SetEnvironmentVariableBlock(_componentHost.BuildParameters.BuildProcessEnvironment); 1319if (_componentHost.BuildParameters.SaveOperatingEnvironment)
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
482DependencyAnalysisResult dependencyResult = dependencyAnalyzer.PerformDependencyAnalysis(bucket, _host.BuildParameters.Question, out changedTargetInputs, out upToDateTargetInputs); 491if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
411if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1022ProjectIsolationMode isolateProjects = _componentHost.BuildParameters.ProjectIsolationMode;
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
128_disableInprocNode = Traits.Instance.InProcNodeDisabled || host.BuildParameters.DisableInProcNode; 143return _host.BuildParameters.MaxNodeCount > 1 || _disableInprocNode; 242return _host.BuildParameters.IsOutOfProc; 940public override bool IsTaskInputLoggingEnabled => _taskHost._host.BuildParameters.LogTaskInputs;
BackEnd\Components\Scheduler\Scheduler.cs (22)
147=> Traits.Instance.InProcNodeDisabled || _componentHost.BuildParameters.DisableInProcNode; 410ScheduleResponse response = TrySatisfyRequestFromCache(request.Parent.AssignedNode, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 797if (_componentHost.BuildParameters.MaxNodeCount == 1) 824if (_componentHost.BuildParameters.MaxNodeCount == 2) 1038TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1258TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1322TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1388_componentHost.BuildParameters.DisableInProcNode || ForceAffinityOutOfProc, 1428if (_schedulingData.ExecutingRequestsCount >= _componentHost.BuildParameters.MaxNodeCount) 1435int limit = _componentHost.BuildParameters.MaxNodeCount switch 14382 => _componentHost.BuildParameters.MaxNodeCount + 1 + _nodeLimitOffset, 1439_ => _componentHost.BuildParameters.MaxNodeCount + 2 + _nodeLimitOffset, 1477int availableNodesWithOutOfProcAffinity = _componentHost.BuildParameters.MaxNodeCount - _currentOutOfProcNodeCount; 1519if (inProcNodesToCreate < availableNodesWithInProcAffinity && !_componentHost.BuildParameters.DisableInProcNode) 1530if (_componentHost.BuildParameters.DisableInProcNode) 1701ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1847ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1921TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1965ProjectIsolationMode isolateProjects = _componentHost.BuildParameters.ProjectIsolationMode; 2150if (_componentHost.BuildParameters.MaxNodeCount > 1) 2200if (_componentHost.BuildParameters.HostServices != null) 2202affinity = _componentHost.BuildParameters.HostServices.GetNodeAffinity(pathOfProject);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
76bool failOnUnresolvedSdk = !Host.BuildParameters.ProjectLoadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) || Host.BuildParameters.ProjectLoadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk);
BackEnd\Node\InProcNode.cs (4)
152if (_componentHost.BuildParameters.ShutdownInProcNodeOnBuildFinish) 333if (_componentHost.BuildParameters.SaveOperatingEnvironment) 471_componentHost.BuildParameters.NodeId = configuration.NodeId; 480_componentHost.BuildParameters.IsOutOfProc = false;
BackEnd\Shared\BuildRequestConfiguration.cs (4)
438InitializeProject(componentHost.BuildParameters, () => 440if (componentHost.BuildParameters.SaveOperatingEnvironment) 467ProjectLoadSettings projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings; 483componentHost.BuildParameters,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
165if (host?.BuildParameters != null) 167LogTaskInputs = host.BuildParameters.LogTaskInputs; 400incrementalTask.FailIfNotIncremental = _buildComponentHost.BuildParameters.Question;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
46if (host!.BuildParameters.IsBuildCheckEnabled)
Instance\TaskFactories\TaskHostTask.cs (5)
267_buildComponentHost.BuildParameters.NodeId, 270_buildComponentHost.BuildParameters.Culture, 271_buildComponentHost.BuildParameters.UICulture, 281_buildComponentHost.BuildParameters.LogTaskInputs, 283new Dictionary<string, string>(_buildComponentHost.BuildParameters.GlobalProperties),