2 writes to _buildParameters
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (2)
535_buildParameters = parameters?.Clone() ?? new BuildParameters(); 2900_buildParameters ??= new BuildParameters();
61 references to _buildParameters
Microsoft.Build (61)
BackEnd\BuildManager\BuildManager.cs (61)
385BuildParameters? IBuildComponentHost.BuildParameters => _buildParameters; 538_buildParameters.BuildId = GetNextBuildId(); 540if (_buildParameters.UsesCachedResults() && _buildParameters.ProjectIsolationMode == ProjectIsolationMode.False) 547_buildParameters.ProjectIsolationMode = ProjectIsolationMode.True; 550if (_buildParameters.UsesOutputCache() && string.IsNullOrWhiteSpace(_buildParameters.OutputResultsCacheFile)) 552_buildParameters.OutputResultsCacheFile = FileUtilities.NormalizePath("msbuild-cache"); 571if (_buildParameters.IsBuildCheckEnabled) 592_buildParameters.ProjectCacheDescriptor); 628AppendDebuggingLoggers(_buildParameters.Loggers), 629_buildParameters.ForwardingLoggers, 630_buildParameters.WarningsAsErrors, 631_buildParameters.WarningsNotAsErrors, 632_buildParameters.WarningsAsMessages); 640if (_buildParameters.UsesInputCaches()) 642loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles)); 645if (_buildParameters.UsesOutputCache()) 647loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile); 679var usesInputCaches = _buildParameters.UsesInputCaches(); 683ReuseOldCaches(_buildParameters.InputResultsCacheFiles); 689if (!usesInputCaches && (_buildParameters.ResetCaches || _configCache!.IsConfigCacheSizeLargerThanThreshold())) 713_buildParameters.ProjectRootElementCache.DiscardImplicitReferences(); 782var parentThreadCulture = _buildParameters != null 783? _buildParameters.Culture 785var parentThreadUICulture = _buildParameters != null 786? _buildParameters.UICulture 849_buildParameters?.ProjectRootElementCache.DiscardImplicitReferences(); 907_buildParameters!.LegacyThreadingSemantics); 990if (_buildParameters!.UsesOutputCache()) 1022if (_buildParameters.DiscardBuildResults) 1078_buildTelemetry.BuildCheckEnabled = _buildParameters!.IsBuildCheckEnabled; 1093if (_buildParameters!.LegacyThreadingSemantics) 1117_buildParameters.OutputResultsCacheFile, 1118_buildParameters.ProjectIsolationMode); 1261_buildParameters!.ProjectRootElementCache == projectInstance.ProjectRootElementCache, 1266_buildParameters!.ProjectRootElementCache = projectInstance.ProjectRootElementCache; 1270else if (_buildParameters!.ProjectRootElementCache == null) 1274_buildParameters!.ProjectRootElementCache = 1301var buildRequestConfiguration = new BuildRequestConfiguration(submission.BuildRequestData, _buildParameters.DefaultToolsVersion); 1490_buildParameters, 1558if (!Equals(CultureInfo.CurrentCulture, _buildParameters!.Culture)) 1560CultureInfo.CurrentCulture = _buildParameters.Culture; 1563if (!Equals(CultureInfo.CurrentUICulture, _buildParameters.UICulture)) 1565CultureInfo.CurrentUICulture = _buildParameters.UICulture; 1834if (allowMainThreadBuild && _buildParameters!.LegacyThreadingSemantics) 1907ProjectLoadSettings projectLoadSettings = _buildParameters!.ProjectLoadSettings; 1922_buildParameters, 1926_buildParameters.NodeId, 2094_nodeManager?.ShutdownConnectedNodes(!abort && _buildParameters!.EnableNodeReuse); 2101_taskHostNodeManager?.ShutdownConnectedNodes(_buildParameters!.EnableNodeReuse); 2189_buildParameters?.ProjectRootElementCache.Clear(); 2508_nodeManager!.ShutdownConnectedNodes(_buildParameters!.EnableNodeReuse); 2509_taskHostNodeManager!.ShutdownConnectedNodes(_buildParameters.EnableNodeReuse); 2629if (_buildParameters!.DetailedSummary) 2754_buildParameters?.ProjectRootElementCache?.Clear(); 2781_buildParameters, 2902_buildParameters.IsBuildCheckEnabled = true; 2917int cpuCount = _buildParameters!.MaxNodeCount; 2919LoggerMode loggerMode = cpuCount == 1 && _buildParameters.UseSynchronousLogging 2937if (_buildParameters.IsBuildCheckEnabled)