7 implementations of BuildParameters
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
391
BuildParameters? IBuildComponentHost.
BuildParameters
=> _buildParameters;
BackEnd\Node\OutOfProcNode.cs (1)
209
BuildParameters IBuildComponentHost.
BuildParameters
=> _buildParameters;
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
167
public BuildParameters
BuildParameters
BackEnd\NodeEndpointInProc_Tests.cs (1)
68
public BuildParameters
BuildParameters
BackEnd\TargetBuilder_Tests.cs (1)
1831
public BuildParameters
BuildParameters
BackEnd\TargetEntry_Tests.cs (1)
1302
public BuildParameters
BuildParameters
BackEnd\TaskBuilder_Tests.cs (1)
1348
public BuildParameters
BuildParameters
111 references to BuildParameters
Microsoft.Build (111)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
358
TraceEngine("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);
367
if (_componentHost.
BuildParameters
.NodeId != Scheduler.InProcNodeId)
432
TraceEngine("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);
449
config.ResultsNodeId = _componentHost.
BuildParameters
.NodeId;
548
skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1220
skippedResultsDoNotCauseCacheMiss: _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)
98
if ((nodeAffinity == NodeAffinity.Any || nodeAffinity == NodeAffinity.InProc) && !_componentHost!.
BuildParameters
.DisableInProcNode)
BackEnd\Components\Communications\NodeProviderInProc.cs (5)
224
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
315
if ((_componentHost.
BuildParameters
.SaveOperatingEnvironment) &&
323
if (!_componentHost.
BuildParameters
.EnableNodeReuse)
389
_inProcNodeThread.CurrentCulture = _componentHost.
BuildParameters
.Culture;
390
_inProcNodeThread.CurrentUICulture = _componentHost.
BuildParameters
.UICulture;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (9)
55
return ComponentHost.
BuildParameters
.MaxNodeCount - _nodeContexts.Count;
85
if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.
BuildParameters
.MaxNodeCount)
87
ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.
BuildParameters
.MaxNodeCount, _nodeContexts.Count);
97
string commandLineArgs = $"/noautoresponse /nologo /nodemode:1 /nodeReuse:{ComponentHost.
BuildParameters
.EnableNodeReuse.ToString().ToLower()} /low:{ComponentHost.
BuildParameters
.LowPriority.ToString().ToLower()}";
101
Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.
BuildParameters
.EnableNodeReuse, lowPriority: ComponentHost.
BuildParameters
.LowPriority));
111
throw new BuildAbortedException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CouldNotConnectToMSBuildExe", ComponentHost.
BuildParameters
.NodeExeLocation));
160
bool nodeReuse = ComponentHost.
BuildParameters
?.EnableNodeReuse ?? true;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
204
msbuildLocation = _componentHost.
BuildParameters
.NodeExeLocation;
226
if (_componentHost.
BuildParameters
.EnableNodeReuse)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
215
ShutdownAllNodes(ComponentHost.
BuildParameters
.EnableNodeReuse, NodeContextTerminated);
541
string commandLineArgs = $" /nologo /nodemode:2 /nodereuse:{ComponentHost.
BuildParameters
.EnableNodeReuse} /low:{ComponentHost.
BuildParameters
.LowPriority} ";
BackEnd\Components\Logging\LoggingService.cs (6)
870
_maxCPUCount = buildComponentHost.
BuildParameters
.MaxNodeCount;
872
Question = buildComponentHost.
BuildParameters
.Question;
876
_onlyLogCriticalEvents = buildComponentHost.
BuildParameters
.OnlyLogCriticalEvents;
882
_buildCheckEnabled = buildComponentHost.
BuildParameters
.IsBuildCheckEnabled;
1495
CultureInfo.CurrentCulture = _componentHost.
BuildParameters
.Culture;
1496
CultureInfo.CurrentUICulture = _componentHost.
BuildParameters
.UICulture;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
354
IDictionary<string, string> environmentProperties = _componentHost?.
BuildParameters
?.BuildProcessEnvironment;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
276
if (_componentHost.
BuildParameters
.ReportFileAccesses)
733
if (_componentHost.
BuildParameters
.ReportFileAccesses)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (14)
367
BuildRequestConfiguration config = new BuildRequestConfiguration(data, _componentHost.
BuildParameters
.DefaultToolsVersion);
368
ProjectIsolationMode isolateProjects = _componentHost.
BuildParameters
.ProjectIsolationMode;
573
return host.
BuildParameters
.LegacyThreadingSemantics && (host.LegacyThreadingData.MainThreadSubmissionId == entry.Request.SubmissionId);
719
CultureInfo.CurrentCulture = _componentHost.
BuildParameters
.Culture;
720
CultureInfo.CurrentUICulture = _componentHost.
BuildParameters
.UICulture;
722
Thread.CurrentThread.Priority = _componentHost.
BuildParameters
.BuildThreadPriority;
903
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
1082
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
1181
(_requestEntry.RequestConfiguration.ResultsNodeId != _componentHost.
BuildParameters
.NodeId))
1188
_requestEntry.RequestConfiguration.ResultsNodeId == _componentHost.
BuildParameters
.NodeId,
1334
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
1371
if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.
BuildParameters
.SaveOperatingEnvironment)
1379
SetEnvironmentVariableBlock(_componentHost.
BuildParameters
.BuildProcessEnvironment);
1388
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
222
_isTelemetryRequested = host.
BuildParameters
.IsTelemetryEnabled;
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
482
DependencyAnalysisResult dependencyResult = dependencyAnalyzer.PerformDependencyAnalysis(bucket, _host.
BuildParameters
.Question, out changedTargetInputs, out upToDateTargetInputs);
491
if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.
BuildParameters
.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
411
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
587
staThread.CurrentCulture = _componentHost.
BuildParameters
.Culture;
588
staThread.CurrentUICulture = _componentHost.
BuildParameters
.UICulture;
1026
ProjectIsolationMode isolateProjects = _componentHost.
BuildParameters
.ProjectIsolationMode;
BackEnd\Components\RequestBuilder\TaskHost.cs (9)
129
_disableInprocNode = Traits.Instance.InProcNodeDisabled || host.
BuildParameters
.DisableInProcNode;
144
return _host.
BuildParameters
.MaxNodeCount > 1 || _disableInprocNode;
231
return _host.
BuildParameters
.AppDomainSetup;
243
return _host.
BuildParameters
.IsOutOfProc;
351
if (_host.
BuildParameters
.ReportFileAccesses)
380
if (_host.
BuildParameters
.ReportFileAccesses)
941
public override bool IsTaskInputLoggingEnabled => _taskHost._host.
BuildParameters
.LogTaskInputs;
951
if (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;
409
ScheduleResponse response = TrySatisfyRequestFromCache(request.Parent.AssignedNode, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
796
if (_componentHost.
BuildParameters
.MaxNodeCount == 1)
823
if (_componentHost.
BuildParameters
.MaxNodeCount == 2)
1034
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1254
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1318
TraceScheduler("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,
1424
if (_schedulingData.ExecutingRequestsCount >= _componentHost.
BuildParameters
.MaxNodeCount)
1431
int limit = _componentHost.
BuildParameters
.MaxNodeCount switch
1434
2 => _componentHost.
BuildParameters
.MaxNodeCount + 1 + _nodeLimitOffset,
1435
_ => _componentHost.
BuildParameters
.MaxNodeCount + 2 + _nodeLimitOffset,
1473
int availableNodesWithOutOfProcAffinity = _componentHost.
BuildParameters
.MaxNodeCount - _currentOutOfProcNodeCount;
1515
if (inProcNodesToCreate < availableNodesWithInProcAffinity && !_componentHost.
BuildParameters
.DisableInProcNode)
1526
if (_componentHost.
BuildParameters
.DisableInProcNode)
1697
ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1843
ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1917
TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1961
ProjectIsolationMode isolateProjects = _componentHost.
BuildParameters
.ProjectIsolationMode;
2146
if (_componentHost.
BuildParameters
.MaxNodeCount > 1)
2196
if (_componentHost.
BuildParameters
.HostServices != null)
2198
affinity = _componentHost.
BuildParameters
.HostServices.GetNodeAffinity(pathOfProject);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
76
bool failOnUnresolvedSdk = !Host.
BuildParameters
.ProjectLoadSettings.HasFlag(ProjectLoadSettings.IgnoreMissingImports) || Host.
BuildParameters
.ProjectLoadSettings.HasFlag(ProjectLoadSettings.FailOnUnresolvedSdk);
BackEnd\Node\InProcNode.cs (5)
152
if (_componentHost.
BuildParameters
.ShutdownInProcNodeOnBuildFinish)
333
if (_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)
442
InitializeProject(componentHost.
BuildParameters
, () =>
444
if (componentHost.
BuildParameters
.SaveOperatingEnvironment)
471
ProjectLoadSettings projectLoadSettings = componentHost.
BuildParameters
.ProjectLoadSettings;
487
componentHost.
BuildParameters
,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
167
if (host?.
BuildParameters
!= null)
169
LogTaskInputs = host.
BuildParameters
.LogTaskInputs;
404
incrementalTask.FailIfNotIncremental = _buildComponentHost.
BuildParameters
.Question;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
46
if (host!.
BuildParameters
.IsBuildCheckEnabled)
Instance\TaskFactories\TaskHostTask.cs (6)
269
_buildComponentHost.
BuildParameters
.NodeId,
272
_buildComponentHost.
BuildParameters
.Culture,
273
_buildComponentHost.
BuildParameters
.UICulture,
283
_buildComponentHost.
BuildParameters
.LogTaskInputs,
285
new Dictionary<string, string>(_buildComponentHost.
BuildParameters
.GlobalProperties),
446
fileAccessManager.ReportFileAccess(fileAccessData, _buildComponentHost.
BuildParameters
.NodeId);
TelemetryInfra\TelemetryForwarderProvider.cs (1)
34
if (host!.
BuildParameters
.IsTelemetryEnabled)