7 implementations of BuildParameters
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
391BuildParameters? IBuildComponentHost.BuildParameters => _buildParameters;
BackEnd\Node\OutOfProcNode.cs (1)
209BuildParameters IBuildComponentHost.BuildParameters => _buildParameters;
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
167public BuildParameters BuildParameters
BackEnd\NodeEndpointInProc_Tests.cs (1)
68public BuildParameters BuildParameters
BackEnd\TargetBuilder_Tests.cs (1)
1831public BuildParameters BuildParameters
BackEnd\TargetEntry_Tests.cs (1)
1302public BuildParameters BuildParameters
BackEnd\TaskBuilder_Tests.cs (1)
1348public BuildParameters BuildParameters
111 references to BuildParameters
Microsoft.Build (111)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
358TraceEngine("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); 367if (_componentHost.BuildParameters.NodeId != Scheduler.InProcNodeId) 432TraceEngine("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); 449config.ResultsNodeId = _componentHost.BuildParameters.NodeId; 548skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1220skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss());
BackEnd\Components\Communications\NodeEndpointInProc.cs (2)
373_packetPump.CurrentCulture = _componentHost.BuildParameters.Culture; 374_packetPump.CurrentUICulture = _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)
224if (_componentHost.BuildParameters.SaveOperatingEnvironment) 315if ((_componentHost.BuildParameters.SaveOperatingEnvironment) && 323if (!_componentHost.BuildParameters.EnableNodeReuse) 389_inProcNodeThread.CurrentCulture = _componentHost.BuildParameters.Culture; 390_inProcNodeThread.CurrentUICulture = _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 = $"/noautoresponse /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 (6)
870_maxCPUCount = buildComponentHost.BuildParameters.MaxNodeCount; 872Question = buildComponentHost.BuildParameters.Question; 876_onlyLogCriticalEvents = buildComponentHost.BuildParameters.OnlyLogCriticalEvents; 882_buildCheckEnabled = buildComponentHost.BuildParameters.IsBuildCheckEnabled; 1495CultureInfo.CurrentCulture = _componentHost.BuildParameters.Culture; 1496CultureInfo.CurrentUICulture = _componentHost.BuildParameters.UICulture;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
354IDictionary<string, string> environmentProperties = _componentHost?.BuildParameters?.BuildProcessEnvironment;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
276if (_componentHost.BuildParameters.ReportFileAccesses) 733if (_componentHost.BuildParameters.ReportFileAccesses)
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) 1082if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1181(_requestEntry.RequestConfiguration.ResultsNodeId != _componentHost.BuildParameters.NodeId)) 1188_requestEntry.RequestConfiguration.ResultsNodeId == _componentHost.BuildParameters.NodeId, 1334if (_componentHost.BuildParameters.SaveOperatingEnvironment) 1371if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.BuildParameters.SaveOperatingEnvironment) 1379SetEnvironmentVariableBlock(_componentHost.BuildParameters.BuildProcessEnvironment); 1388if (_componentHost.BuildParameters.SaveOperatingEnvironment)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
222_isTelemetryRequested = host.BuildParameters.IsTelemetryEnabled;
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 (4)
411if (_componentHost.BuildParameters.SaveOperatingEnvironment) 587staThread.CurrentCulture = _componentHost.BuildParameters.Culture; 588staThread.CurrentUICulture = _componentHost.BuildParameters.UICulture; 1026ProjectIsolationMode isolateProjects = _componentHost.BuildParameters.ProjectIsolationMode;
BackEnd\Components\RequestBuilder\TaskHost.cs (9)
129_disableInprocNode = Traits.Instance.InProcNodeDisabled || host.BuildParameters.DisableInProcNode; 144return _host.BuildParameters.MaxNodeCount > 1 || _disableInprocNode; 231return _host.BuildParameters.AppDomainSetup; 243return _host.BuildParameters.IsOutOfProc; 351if (_host.BuildParameters.ReportFileAccesses) 380if (_host.BuildParameters.ReportFileAccesses) 941public override bool IsTaskInputLoggingEnabled => _taskHost._host.BuildParameters.LogTaskInputs; 951if (buildComponentHost.BuildParameters.ReportFileAccesses) 953((IFileAccessManager)buildComponentHost.GetComponent(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessData, buildComponentHost.BuildParameters.NodeId);
BackEnd\Components\Scheduler\Scheduler.cs (22)
146=> Traits.Instance.InProcNodeDisabled || _componentHost.BuildParameters.DisableInProcNode; 409ScheduleResponse response = TrySatisfyRequestFromCache(request.Parent.AssignedNode, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 796if (_componentHost.BuildParameters.MaxNodeCount == 1) 823if (_componentHost.BuildParameters.MaxNodeCount == 2) 1034TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1254TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1318TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1384_componentHost.BuildParameters.DisableInProcNode || ForceAffinityOutOfProc, 1424if (_schedulingData.ExecutingRequestsCount >= _componentHost.BuildParameters.MaxNodeCount) 1431int limit = _componentHost.BuildParameters.MaxNodeCount switch 14342 => _componentHost.BuildParameters.MaxNodeCount + 1 + _nodeLimitOffset, 1435_ => _componentHost.BuildParameters.MaxNodeCount + 2 + _nodeLimitOffset, 1473int availableNodesWithOutOfProcAffinity = _componentHost.BuildParameters.MaxNodeCount - _currentOutOfProcNodeCount; 1515if (inProcNodesToCreate < availableNodesWithInProcAffinity && !_componentHost.BuildParameters.DisableInProcNode) 1526if (_componentHost.BuildParameters.DisableInProcNode) 1697ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1843ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.BuildParameters.SkippedResultsDoNotCauseCacheMiss()); 1917TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1961ProjectIsolationMode isolateProjects = _componentHost.BuildParameters.ProjectIsolationMode; 2146if (_componentHost.BuildParameters.MaxNodeCount > 1) 2196if (_componentHost.BuildParameters.HostServices != null) 2198affinity = _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 (5)
152if (_componentHost.BuildParameters.ShutdownInProcNodeOnBuildFinish) 333if (_componentHost.BuildParameters.SaveOperatingEnvironment) 471_componentHost.BuildParameters.NodeId = configuration.NodeId; 476_componentHost.BuildParameters.AppDomainSetup = configuration.AppDomainSetup; 480_componentHost.BuildParameters.IsOutOfProc = false;
BackEnd\Shared\BuildRequestConfiguration.cs (4)
442InitializeProject(componentHost.BuildParameters, () => 444if (componentHost.BuildParameters.SaveOperatingEnvironment) 471ProjectLoadSettings projectLoadSettings = componentHost.BuildParameters.ProjectLoadSettings; 487componentHost.BuildParameters,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
167if (host?.BuildParameters != null) 169LogTaskInputs = host.BuildParameters.LogTaskInputs; 404incrementalTask.FailIfNotIncremental = _buildComponentHost.BuildParameters.Question;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
46if (host!.BuildParameters.IsBuildCheckEnabled)
Instance\TaskFactories\TaskHostTask.cs (6)
269_buildComponentHost.BuildParameters.NodeId, 272_buildComponentHost.BuildParameters.Culture, 273_buildComponentHost.BuildParameters.UICulture, 283_buildComponentHost.BuildParameters.LogTaskInputs, 285new Dictionary<string, string>(_buildComponentHost.BuildParameters.GlobalProperties), 446fileAccessManager.ReportFileAccess(fileAccessData, _buildComponentHost.BuildParameters.NodeId);
TelemetryInfra\TelemetryForwarderProvider.cs (1)
34if (host!.BuildParameters.IsTelemetryEnabled)