7 implementations of BuildParameters
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
384
BuildParameters? IBuildComponentHost.
BuildParameters
=> _buildParameters;
BackEnd\Node\OutOfProcNode.cs (1)
207
BuildParameters IBuildComponentHost.
BuildParameters
=> _buildParameters;
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
161
public BuildParameters
BuildParameters
BackEnd\NodeEndpointInProc_Tests.cs (1)
69
public BuildParameters
BuildParameters
BackEnd\TargetBuilder_Tests.cs (1)
1832
public BuildParameters
BuildParameters
BackEnd\TargetEntry_Tests.cs (1)
1303
public BuildParameters
BuildParameters
BackEnd\TaskBuilder_Tests.cs (1)
1349
public BuildParameters
BuildParameters
108 references to BuildParameters
Microsoft.Build (108)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
355
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);
364
if (_componentHost.
BuildParameters
.NodeId != Scheduler.InProcNodeId)
429
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);
446
config.ResultsNodeId = _componentHost.
BuildParameters
.NodeId;
545
skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1217
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)
223
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
314
if ((_componentHost.
BuildParameters
.SaveOperatingEnvironment) &&
322
if (!_componentHost.
BuildParameters
.EnableNodeReuse)
388
_inProcNodeThread.CurrentCulture = _componentHost.
BuildParameters
.Culture;
389
_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 = $"/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 (5)
863
_maxCPUCount = buildComponentHost.
BuildParameters
.MaxNodeCount;
865
Question = buildComponentHost.
BuildParameters
.Question;
869
_onlyLogCriticalEvents = buildComponentHost.
BuildParameters
.OnlyLogCriticalEvents;
1515
CultureInfo.CurrentCulture = _componentHost.
BuildParameters
.Culture;
1516
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)
275
if (_componentHost.
BuildParameters
.ReportFileAccesses)
732
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)
1095
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
1194
(_requestEntry.RequestConfiguration.ResultsNodeId != _componentHost.
BuildParameters
.NodeId))
1201
_requestEntry.RequestConfiguration.ResultsNodeId == _componentHost.
BuildParameters
.NodeId,
1265
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
1302
if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null && _componentHost.
BuildParameters
.SaveOperatingEnvironment)
1310
SetEnvironmentVariableBlock(_componentHost.
BuildParameters
.BuildProcessEnvironment);
1319
if (_componentHost.
BuildParameters
.SaveOperatingEnvironment)
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)
583
staThread.CurrentCulture = _componentHost.
BuildParameters
.Culture;
584
staThread.CurrentUICulture = _componentHost.
BuildParameters
.UICulture;
1022
ProjectIsolationMode isolateProjects = _componentHost.
BuildParameters
.ProjectIsolationMode;
BackEnd\Components\RequestBuilder\TaskHost.cs (9)
128
_disableInprocNode = Traits.Instance.InProcNodeDisabled || host.
BuildParameters
.DisableInProcNode;
143
return _host.
BuildParameters
.MaxNodeCount > 1 || _disableInprocNode;
230
return _host.
BuildParameters
.AppDomainSetup;
242
return _host.
BuildParameters
.IsOutOfProc;
350
if (_host.
BuildParameters
.ReportFileAccesses)
379
if (_host.
BuildParameters
.ReportFileAccesses)
940
public override bool IsTaskInputLoggingEnabled => _taskHost._host.
BuildParameters
.LogTaskInputs;
950
if (buildComponentHost.
BuildParameters
.ReportFileAccesses)
952
((IFileAccessManager)buildComponentHost.GetComponent(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessData, buildComponentHost.
BuildParameters
.NodeId);
BackEnd\Components\Scheduler\Scheduler.cs (22)
147
=> Traits.Instance.InProcNodeDisabled || _componentHost.
BuildParameters
.DisableInProcNode;
410
ScheduleResponse response = TrySatisfyRequestFromCache(request.Parent.AssignedNode, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
797
if (_componentHost.
BuildParameters
.MaxNodeCount == 1)
824
if (_componentHost.
BuildParameters
.MaxNodeCount == 2)
1038
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1258
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1322
TraceScheduler("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,
1428
if (_schedulingData.ExecutingRequestsCount >= _componentHost.
BuildParameters
.MaxNodeCount)
1435
int limit = _componentHost.
BuildParameters
.MaxNodeCount switch
1438
2 => _componentHost.
BuildParameters
.MaxNodeCount + 1 + _nodeLimitOffset,
1439
_ => _componentHost.
BuildParameters
.MaxNodeCount + 2 + _nodeLimitOffset,
1477
int availableNodesWithOutOfProcAffinity = _componentHost.
BuildParameters
.MaxNodeCount - _currentOutOfProcNodeCount;
1519
if (inProcNodesToCreate < availableNodesWithInProcAffinity && !_componentHost.
BuildParameters
.DisableInProcNode)
1530
if (_componentHost.
BuildParameters
.DisableInProcNode)
1701
ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1847
ScheduleResponse response = TrySatisfyRequestFromCache(nodeForResults, request.BuildRequest, skippedResultsDoNotCauseCacheMiss: _componentHost.
BuildParameters
.SkippedResultsDoNotCauseCacheMiss());
1921
TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.
BuildParameters
.MaxNodeCount);
1965
ProjectIsolationMode isolateProjects = _componentHost.
BuildParameters
.ProjectIsolationMode;
2150
if (_componentHost.
BuildParameters
.MaxNodeCount > 1)
2200
if (_componentHost.
BuildParameters
.HostServices != null)
2202
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)
438
InitializeProject(componentHost.
BuildParameters
, () =>
440
if (componentHost.
BuildParameters
.SaveOperatingEnvironment)
467
ProjectLoadSettings projectLoadSettings = componentHost.
BuildParameters
.ProjectLoadSettings;
483
componentHost.
BuildParameters
,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
165
if (host?.
BuildParameters
!= null)
167
LogTaskInputs = host.
BuildParameters
.LogTaskInputs;
400
incrementalTask.FailIfNotIncremental = _buildComponentHost.
BuildParameters
.Question;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
46
if (host!.
BuildParameters
.IsBuildCheckEnabled)
Instance\TaskFactories\TaskHostTask.cs (6)
267
_buildComponentHost.
BuildParameters
.NodeId,
270
_buildComponentHost.
BuildParameters
.Culture,
271
_buildComponentHost.
BuildParameters
.UICulture,
281
_buildComponentHost.
BuildParameters
.LogTaskInputs,
283
new Dictionary<string, string>(_buildComponentHost.
BuildParameters
.GlobalProperties),
444
fileAccessManager.ReportFileAccess(fileAccessData, _buildComponentHost.
BuildParameters
.NodeId);