109 instantiations of BuildParameters
Microsoft.Build (9)
BackEnd\BuildManager\BuildManager.cs (2)
535_buildParameters = parameters?.Clone() ?? new BuildParameters(); 2891_buildParameters ??= new BuildParameters();
BackEnd\BuildManager\BuildParameters.cs (2)
872return new BuildParameters(this); 934return new BuildParameters(translator);
Instance\ProjectInstance.cs (5)
304BuildParameters buildParameters = new BuildParameters(projectCollection) 517BuildParameters buildParameters = new BuildParameters(projectCollection) 590Initialize(xml, globalProperties, toolsVersion, null, visualStudioVersionFromSolution, new BuildParameters(projectCollection), projectCollection.LoggingService, buildEventContext, sdkResolverService, submissionId); 605Initialize(xml, globalProperties, toolsVersion, null, visualStudioVersionFromSolution, new BuildParameters(projectCollection), loggingService, buildEventContext, sdkResolverService, submissionId); 2695BuildParameters parameters = new BuildParameters();
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
90var parameters = new BuildParameters
Microsoft.Build.Engine.OM.UnitTests (2)
Instance\ProjectInstance_Tests.cs (2)
402BuildManager.DefaultBuildManager.Build(new BuildParameters(), buildRequestData1); 408BuildManager.DefaultBuildManager.Build(new BuildParameters(), buildRequestData2);
Microsoft.Build.Engine.UnitTests (79)
BackEnd\BuildManager_Logging_Tests.cs (1)
146private BuildParameters BuildParameters => new BuildParameters(_projectCollection)
BackEnd\BuildManager_Tests.cs (27)
78_parameters = new BuildParameters 113Assert.Throws<ArgumentNullException>(() => { new BuildParameters(null); }); 358var buildParameters = new BuildParameters(projectCollection) 445var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 508var customparameters = new BuildParameters 708BuildParameters parameters = new BuildParameters 778BuildParameters parameters = new BuildParameters 904var customParameters = new BuildParameters(projectCollection) { Loggers = new ILogger[] { _logger } }; 1158bm.Build(new BuildParameters(), brd); 1177_buildManager.BeginBuild(new BuildParameters()); 1178Assert.Throws<InvalidOperationException>(() => _buildManager.BeginBuild(new BuildParameters())); 1206_buildManager.BeginBuild(new BuildParameters()); 1219_buildManager.BeginBuild(new BuildParameters()); 1232_buildManager.BeginBuild(new BuildParameters()); 1248_buildManager.BeginBuild(new BuildParameters()); 1250Assert.Throws<InvalidOperationException>(() => { _buildManager.Build(new BuildParameters(), data); }); 1534BuildParameters parameters = new() 3130new BuildParameters(ProjectCollection.GlobalProjectCollection) 3208new BuildParameters(ProjectCollection.GlobalProjectCollection) 3293new BuildParameters(ProjectCollection.GlobalProjectCollection) 3509var parameters = new BuildParameters(); 3713var parameters = new BuildParameters 3779var buildParameters = new BuildParameters(_projectCollection) 3865var parameters = new BuildParameters(_projectCollection) 3934var buildParameters = new BuildParameters(_projectCollection) 4035var buildParameters = new BuildParameters() 4083var parameters = new BuildParameters
BackEnd\LoggingService_Tests.cs (2)
93BuildParameters parameters = new BuildParameters(); 1088BuildParameters parameters = new BuildParameters();
BackEnd\MockHost.cs (1)
77: this(new BuildParameters(), overrideConfigCache, overrideResultsCache)
BackEnd\NodeEndpointInProc_Tests.cs (1)
37_buildParameters = new BuildParameters();
BackEnd\Scheduler_Tests.cs (4)
82_parameters = new BuildParameters(); 385_parameters = new BuildParameters(); 507s.InitializeComponent(new MockHost(new BuildParameters { DisableInProcNode = true })); 578_parameters = new BuildParameters();
BackEnd\SdkResultOutOfProc_Tests.cs (3)
58_parameters = new BuildParameters 126var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 171var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } };
BackEnd\TargetBuilder_Tests.cs (2)
256var buildParameters = new BuildParameters() 1771_buildParameters = new BuildParameters();
BackEnd\TargetEntry_Tests.cs (2)
868BuildParameters parameters = new BuildParameters(collection) 1245_buildParameters = new BuildParameters();
BackEnd\TaskBuilder_Tests.cs (2)
172var _parameters = new BuildParameters 1303_buildParameters = new BuildParameters();
BackEnd\TaskRegistry_Tests.cs (1)
664BuildParameters parameters = new BuildParameters()
BinaryLogger_Tests.cs (1)
597buildManager.Build(new BuildParameters() { Loggers = new ILogger[] { binaryLogger } },
ConsoleLogger_Tests.cs (3)
220new BuildParameters(pc.Collection), 261new BuildParameters(pc.Collection), 313new BuildParameters(pc.Collection),
Construction\SolutionProjectGenerator_Tests.cs (2)
2121BuildParameters parameters = new BuildParameters(); 2209BuildParameters parameters = new BuildParameters();
EvaluationProfiler_Tests.cs (1)
270var parameters = new BuildParameters
Graph\IsolateProjects_Tests.cs (1)
149_buildParametersPrototype = new BuildParameters
Graph\ResultCacheBasedBuilds_Tests.cs (7)
65new BuildParameters 87new BuildParameters 104buildManager.BeginBuild(new BuildParameters 134new BuildParameters 166new BuildParameters 454var buildParameters = new BuildParameters 562new BuildParameters
Instance\ProjectInstance_Internal_Tests.cs (1)
860BuildParameters buildParameters = new BuildParameters(projectCollection) { ProjectLoadSettings = projectLoadSettings };
ProjectCache\ProjectCacheTests.cs (17)
416new BuildParameters 425new BuildParameters 461buildParameters = new BuildParameters(buildParameters, resetEnvironment: true) 489buildParameters = new BuildParameters(buildParameters, resetEnvironment: true) 566? new BuildParameters() 567: new BuildParameters(buildParameters, resetEnvironment: true); 743var buildParameters = new BuildParameters 917var buildParameters = new BuildParameters 994var buildParameters = new BuildParameters 1034var buildParameters = new BuildParameters 1124new BuildParameters 1247new BuildParameters 1341var buildParameters = new BuildParameters 1394var buildParameters = new BuildParameters() 1467var buildParameters = new BuildParameters 1527var buildParameters = new BuildParameters() 1586var buildParameters = new BuildParameters
Microsoft.Build.Tasks.UnitTests (3)
CreateItem_Tests.cs (1)
210BuildParameters parameters = new BuildParameters
Exec_Tests.cs (2)
946var parameters = new BuildParameters() 1003var parameters = new BuildParameters()
Microsoft.Build.UnitTests.Shared (5)
EngineTestEnvironment.cs (1)
49new BuildParameters()
ObjectModelHelpers.cs (4)
1021BuildParameters parameters = new BuildParameters(); 1418parameters ??= new BuildParameters(); 1487BuildParameters parameters = new BuildParameters() 2081var actualBuildParameters = buildParameters ?? new BuildParameters();
Microsoft.Build.Utilities.UnitTests (8)
MuxLogger_Tests.cs (8)
33BuildParameters parameters = new BuildParameters(); 58BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 98BuildParameters parameters = new BuildParameters(projectCollection); 108parameters = new BuildParameters(collection); 153BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 207BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 262BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 311BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
192var buildParameters = new MSB.Execution.BuildParameters(_batchBuildProjectCollection)
MSBuild (1)
XMake.cs (1)
1462BuildParameters parameters = new BuildParameters(projectCollection);
149 references to BuildParameters
Microsoft.Build (48)
BackEnd\BuildManager\BuildManager.cs (13)
157private BuildParameters? _buildParameters; 327/// This is the default state. <see cref="BeginBuild(BuildParameters)"/> may be called in this state. All other methods raise InvalidOperationException 332/// This is the state the BuildManager is in after <see cref="BeginBuild(BuildParameters)"/> has been called but before <see cref="EndBuild()"/> has been called. 385BuildParameters? IBuildComponentHost.BuildParameters => _buildParameters; 393/// <see cref="BuildManager.BeginBuild(BuildParameters,IEnumerable{DeferredBuildMessage})"/> 424public void BeginBuild(BuildParameters parameters, IEnumerable<DeferredBuildMessage> deferredBuildMessages) 454public void BeginBuild(BuildParameters parameters) 525if (BuildParameters.DumpOpportunisticInternStats) 1096if (BuildParameters.DumpOpportunisticInternStats) 1121private TResultData Build<TRequestData, TResultData>(BuildParameters parameters, TRequestData requestData) 1148public BuildResult Build(BuildParameters parameters, BuildRequestData requestData) 1155public GraphBuildResult Build(BuildParameters parameters, GraphBuildRequestData requestData) 2887/// Sets <see cref="BuildParameters.IsBuildCheckEnabled"/> to true. Used for BuildCheck Replay Mode.
BackEnd\BuildManager\BuildParameters.cs (3)
266internal BuildParameters(BuildParameters other, bool resetEnvironment = false) 870public BuildParameters Clone() 932internal static BuildParameters FactoryForDeserialization(ITranslator translator)
BackEnd\Components\Communications\NodeEndpointInProc.cs (2)
12using BuildParameters = Microsoft.Build.Execution.BuildParameters; 393if (!_packetPump.Join((int)new TimeSpan(0, 0, BuildParameters.EndpointShutdownTimeout).TotalMilliseconds))
BackEnd\Components\IBuildComponentHost.cs (2)
4using BuildParameters = Microsoft.Build.Execution.BuildParameters; 167BuildParameters BuildParameters { get; }
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
294taskCleanedUp = _requestTask.Wait(BuildParameters.RequestBuilderShutdownTimeout); 305_projectLoggingContext.LogError(new BuildEventFileInfo(String.Empty), "FailedToReceiveTaskThreadStatus", BuildParameters.RequestBuilderShutdownTimeout);
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
88if (!BuildParameters.EnableBuildPlan) 137if (!BuildParameters.EnableBuildPlan)
BackEnd\Node\NodeConfiguration.cs (4)
29private BuildParameters _buildParameters; 59BuildParameters buildParameters, 100public BuildParameters BuildParameters 162translator.Translate(ref _buildParameters, BuildParameters.FactoryForDeserialization);
BackEnd\Node\OutOfProcNode.cs (3)
62private BuildParameters _buildParameters; 207BuildParameters IBuildComponentHost.BuildParameters => _buildParameters; 705NativeMethodsShared.SetCurrentDirectory(BuildParameters.StartupDirectory);
BackEnd\Node\OutOfProcServerNode.cs (1)
373BuildParameters.StartupDirectory = command.StartupDirectory;
BackEnd\Shared\BuildRequestConfiguration.cs (2)
444NativeMethodsShared.SetCurrentDirectory(BuildParameters.StartupDirectory); 499private void InitializeProject(BuildParameters buildParameters, Func<ProjectInstance> loadProjectFromFile)
Construction\ProjectTargetElement.cs (2)
171if (String.IsNullOrEmpty(value) && !BuildParameters.KeepDuplicateOutputs) 313if ((location == null) && !BuildParameters.KeepDuplicateOutputs)
Evaluation\Evaluator.cs (1)
1128string startupDirectory = BuildParameters.StartupDirectory;
Evaluation\Expander.cs (1)
1368if (BuildParameters.DebugExpansion)
Evaluation\PropertiesUseTracker.cs (1)
33private bool _warnForUninitializedProperties = BuildParameters.WarnOnUninitializedProperty || Traits.Instance.EscapeHatches.WarnOnUninitializedProperty;
Instance\ProjectInstance.cs (9)
304BuildParameters buildParameters = new BuildParameters(projectCollection) 517BuildParameters buildParameters = new BuildParameters(projectCollection) 613internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 629internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId) 2532BuildParameters buildParameters, 2594BuildParameters buildParameters, 2695BuildParameters parameters = new BuildParameters(); 2931BuildParameters buildParameters, 3075BuildParameters buildParameters,
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
90var parameters = new BuildParameters
Microsoft.Build.Engine.UnitTests (82)
BackEnd\BuildManager_Logging_Tests.cs (1)
146private BuildParameters BuildParameters => new BuildParameters(_projectCollection)
BackEnd\BuildManager_Tests.cs (22)
53private readonly BuildParameters _parameters; 156var newParameters = _parameters.Clone(); 167var newParameters = _parameters.Clone(); 175private void SimpleP2PBuild(BuildParameters buildParameters) 358var buildParameters = new BuildParameters(projectCollection) 422private void RunOutOfProcBuild(Action<BuildParameters> buildParametersModifier) 445var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 508var customparameters = new BuildParameters 708BuildParameters parameters = new BuildParameters 778BuildParameters parameters = new BuildParameters 904var customParameters = new BuildParameters(projectCollection) { Loggers = new ILogger[] { _logger } }; 1534BuildParameters parameters = new() 3129var buildParameters = 3207var buildParameters = 3292var buildParameters = 3509var parameters = new BuildParameters(); 3713var parameters = new BuildParameters 3779var buildParameters = new BuildParameters(_projectCollection) 3865var parameters = new BuildParameters(_projectCollection) 3934var buildParameters = new BuildParameters(_projectCollection) 4035var buildParameters = new BuildParameters() 4083var parameters = new BuildParameters
BackEnd\LoggingService_Tests.cs (2)
93BuildParameters parameters = new BuildParameters(); 1088BuildParameters parameters = new BuildParameters();
BackEnd\MockHost.cs (3)
46private BuildParameters _buildParameters; 87public MockHost(BuildParameters buildParameters, ConfigCache overrideConfigCache = null, ResultsCache overrideResultsCache = null) 161public BuildParameters BuildParameters
BackEnd\NodeEndpointInProc_Tests.cs (2)
27private BuildParameters _buildParameters; 69public BuildParameters BuildParameters
BackEnd\Scheduler_Tests.cs (1)
59private BuildParameters _parameters;
BackEnd\SdkResultOutOfProc_Tests.cs (3)
41private readonly BuildParameters _parameters; 126var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 171var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } };
BackEnd\TargetBuilder_Tests.cs (3)
256var buildParameters = new BuildParameters() 1757private BuildParameters _buildParameters; 1832public BuildParameters BuildParameters
BackEnd\TargetEntry_Tests.cs (3)
868BuildParameters parameters = new BuildParameters(collection) 1231private BuildParameters _buildParameters; 1303public BuildParameters BuildParameters
BackEnd\TaskBuilder_Tests.cs (3)
172var _parameters = new BuildParameters 1286private BuildParameters _buildParameters; 1349public BuildParameters BuildParameters
BackEnd\TaskRegistry_Tests.cs (1)
664BuildParameters parameters = new BuildParameters()
Construction\SolutionProjectGenerator_Tests.cs (2)
2121BuildParameters parameters = new BuildParameters(); 2209BuildParameters parameters = new BuildParameters();
Evaluation\Evaluator_Tests.cs (13)
504bool originalValue = BuildParameters.WarnOnUninitializedProperty; 507BuildParameters.WarnOnUninitializedProperty = true; 524BuildParameters.WarnOnUninitializedProperty = originalValue; 592bool originalValue2 = BuildParameters.WarnOnUninitializedProperty; 597BuildParameters.WarnOnUninitializedProperty = false; 613BuildParameters.WarnOnUninitializedProperty = originalValue2; 727bool originalValue = BuildParameters.WarnOnUninitializedProperty; 730BuildParameters.WarnOnUninitializedProperty = true; 746BuildParameters.WarnOnUninitializedProperty = originalValue; 773bool originalValue = BuildParameters.WarnOnUninitializedProperty; 776BuildParameters.WarnOnUninitializedProperty = true; 792BuildParameters.WarnOnUninitializedProperty = originalValue; 5019BuildParameters.WarnOnUninitializedProperty = true;
Evaluation\SdkResultEvaluation_Tests.cs (3)
37_originalWarnOnUnitializedProperty = BuildParameters.WarnOnUninitializedProperty; 38BuildParameters.WarnOnUninitializedProperty = false; 467BuildParameters.WarnOnUninitializedProperty = _originalWarnOnUnitializedProperty;
EvaluationProfiler_Tests.cs (1)
270var parameters = new BuildParameters
Graph\IsolateProjects_Tests.cs (3)
132private BuildParameters _buildParametersPrototype; 537var buildParameters = _buildParametersPrototype.Clone(); 600var buildParameters = _buildParametersPrototype.Clone();
Graph\ResultCacheBasedBuilds_Tests.cs (1)
454var buildParameters = new BuildParameters
Instance\ProjectInstance_Internal_Tests.cs (1)
860BuildParameters buildParameters = new BuildParameters(projectCollection) { ProjectLoadSettings = projectLoadSettings };
ProjectCache\ProjectCacheTests.cs (14)
454public void ProjectCacheByBuildParametersAndGraphBuildWorks(GraphCacheResponse testData, BuildParameters buildParameters) 481public void ProjectCacheByBuildParametersAndBottomUpBuildWorks(GraphCacheResponse testData, BuildParameters buildParameters) 516public void ProjectCacheByVsScenarioWorks(GraphCacheResponse testData, BuildParameters buildParameters) 544BuildParameters? buildParameters = null, 743var buildParameters = new BuildParameters 871public void CacheShouldNotGetQueriedForNestedBuildRequests(BuildParameters buildParameters) 917var buildParameters = new BuildParameters 994var buildParameters = new BuildParameters 1034var buildParameters = new BuildParameters 1341var buildParameters = new BuildParameters 1394var buildParameters = new BuildParameters() 1467var buildParameters = new BuildParameters 1527var buildParameters = new BuildParameters() 1586var buildParameters = new BuildParameters
Microsoft.Build.Tasks.UnitTests (3)
CreateItem_Tests.cs (1)
210BuildParameters parameters = new BuildParameters
Exec_Tests.cs (2)
946var parameters = new BuildParameters() 1003var parameters = new BuildParameters()
Microsoft.Build.UnitTests.Shared (6)
ObjectModelHelpers.cs (6)
1021BuildParameters parameters = new BuildParameters(); 1397public static BuildResult BuildProjectContentUsingBuildManager([StringSyntax(StringSyntaxAttribute.Xml)] string content, MockLogger logger, BuildParameters parameters = null) 1413BuildParameters parameters = null, 1487BuildParameters parameters = new BuildParameters() 2072BuildParameters buildParameters = null, 2081var actualBuildParameters = buildParameters ?? new BuildParameters();
Microsoft.Build.Utilities.UnitTests (7)
MuxLogger_Tests.cs (7)
33BuildParameters parameters = new BuildParameters(); 58BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 98BuildParameters parameters = new BuildParameters(projectCollection); 153BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 207BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 262BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 311BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
192var buildParameters = new MSB.Execution.BuildParameters(_batchBuildProjectCollection)
MSBuild (1)
XMake.cs (1)
1462BuildParameters parameters = new BuildParameters(projectCollection);