104 instantiations of BuildRequestConfiguration
Microsoft.Build (7)
BackEnd\BuildManager\BuildManager.cs (3)
1292var buildRequestConfiguration = new BuildRequestConfiguration(submission.BuildRequestData, _buildParameters.DefaultToolsVersion); 1498var newConfig = new BuildRequestConfiguration( 1526existingConfiguration = new BuildRequestConfiguration(GetNewConfigurationId(), new BuildRequestData(newInstance, []), null /* use the instance's tools version */);
BackEnd\Components\Caching\ConfigCache.cs (1)
373configuration = new BuildRequestConfiguration();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
367BuildRequestConfiguration config = new BuildRequestConfiguration(data, _componentHost.BuildParameters.DefaultToolsVersion);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
958return new BuildRequestConfiguration(translator); 1004return new BuildRequestConfiguration(newId, this);
Microsoft.Build.Engine.UnitTests (97)
BackEnd\BuildRequestConfiguration_Tests.cs (33)
67BuildRequestConfiguration config1 = new BuildRequestConfiguration(1, data, "2.0"); 75new BuildRequestConfiguration(1, config1, "2.0"); 82new BuildRequestConfiguration(-1, config1, "2.0"); 106BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data1, "2.0"); 110BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data2, "2.0"); 114BuildRequestConfiguration config3 = new BuildRequestConfiguration(data3, "2.0"); 122BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data1, "2.0"); 126BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data2, "2.0"); 130BuildRequestConfiguration config3 = new BuildRequestConfiguration(0, data3, "2.0"); 140BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data, "2.0"); 148BuildRequestConfiguration config1 = new BuildRequestConfiguration(data, "2.0"); 158BuildRequestConfiguration config1 = new BuildRequestConfiguration(data, "2.0"); 166BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 174BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", props, "toolsVersion", Array.Empty<string>(), null), "2.0"); 183BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 197BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0"); 206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 233BuildRequestConfiguration config5 = new BuildRequestConfiguration(data, "2.0"); 248BuildRequestConfiguration config = new BuildRequestConfiguration(data, "2.0"); 290BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0"); 364BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 466BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 495var configWithoutEvaluation = new BuildRequestConfiguration(); 570var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\BuildRequestEngine_Tests.cs (5)
338BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 369BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 397BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 450BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 456BuildRequestConfiguration unresolvedConfig = new BuildRequestConfiguration(data2, "2.0");
BackEnd\BuildRequestEntry_Tests.cs (10)
25BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 45BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 94BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 116BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 145BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 183BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 199BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 216BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 239BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 259BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
78configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 79configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 100configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 129configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 151configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 159configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 195configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 213configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 214configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 225configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13")); 226configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path4", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "g", "h" }, null), "13"));
BackEnd\CacheSerialization_Tests.cs (3)
25var brq1 = new BuildRequestConfiguration( 30var brq2 = new BuildRequestConfiguration( 34var brq3 = new BuildRequestConfiguration(
BackEnd\ConfigCache_Tests.cs (6)
25var brq1 = new BuildRequestConfiguration( 35var brq2 = new BuildRequestConfiguration( 44var brq3 = new BuildRequestConfiguration( 72var brq1 = new BuildRequestConfiguration( 76var brq2 = new BuildRequestConfiguration( 80var brq3 = new BuildRequestConfiguration(
BackEnd\ConfigurationMetadata_Tests.cs (5)
63BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 89BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 105BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 114BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 119BuildRequestConfiguration config3 = new BuildRequestConfiguration(1, data, "3.0");
BackEnd\FullyQualifiedBuildRequest_Tests.cs (5)
20FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), new string[1] { "foo" }, true); 22request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), true); 25request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), false); 42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true); 49BuildRequestConfiguration config = new BuildRequestConfiguration(data, "2.0");
BackEnd\IntrinsicTask_Tests.cs (2)
3958BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0")); 3993var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingService_Tests.cs (1)
968configCache.AddConfiguration(new BuildRequestConfiguration(buildEventContext.ProjectInstanceId, buildRequestData, buildRequestData.ExplicitlySpecifiedToolsVersion));
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
842BuildRequestConfiguration config = new BuildRequestConfiguration(2, data, "4.0"); 868BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 907BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 948BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 1421BuildRequestConfiguration config = new BuildRequestConfiguration(2, data, "4.0");
BackEnd\RequestBuilder_Tests.cs (2)
226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"); 265BuildRequestConfiguration config = new BuildRequestConfiguration(
BackEnd\Scheduler_Tests.cs (1)
735BuildRequestConfiguration config = new(configId, data, "4.0") { ProjectInitialTargets = new List<string>(), ProjectDefaultTargets = new List<string>() };
BackEnd\TargetBuilder_Tests.cs (1)
1676BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TargetEntry_Tests.cs (5)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1026BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1044BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskBuilder_Tests.cs (1)
1242BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testfile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TaskHost_Tests.cs (1)
76BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("Nothing", new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null), "2.0");
250 references to BuildRequestConfiguration
Microsoft.Build (148)
BackEnd\BuildManager\BuildManager.cs (30)
598_nodeManager.RegisterPacketHandler(NodePacketType.BuildRequestConfiguration, BuildRequestConfiguration.FactoryForDeserialization, this); 708foreach (var config in _configCache!) 855BuildRequestConfiguration configuration = _configCache!.GetMatchingConfiguration( 1237BuildRequestConfiguration? resolvedConfiguration = null; 1292var buildRequestConfiguration = new BuildRequestConfiguration(submission.BuildRequestData, _buildParameters.DefaultToolsVersion); 1293var matchingConfiguration = _configCache!.GetMatchingConfiguration(buildRequestConfiguration); 1459private void LoadSolutionIntoConfiguration(BuildRequestConfiguration config, BuildRequest request) 1498var newConfig = new BuildRequestConfiguration( 1520private BuildRequestConfiguration CreateConfiguration(Project project, BuildRequestConfiguration? existingConfiguration) 1610BuildRequestConfiguration requestConfiguration = ExpectPacketType<BuildRequestConfiguration>(packet, NodePacketType.BuildRequestConfiguration); 1650private void CompleteSubmissionWithException(BuildSubmission submission, BuildRequestConfiguration configuration, Exception exception) 1794private void IssueBuildRequestForBuildSubmission(BuildSubmission submission, BuildRequestConfiguration configuration, bool allowMainThreadBuild = false) 2169foreach (BuildRequestConfiguration config in _configCache) 2206private BuildRequestConfiguration ResolveConfiguration(BuildRequestConfiguration unresolvedConfiguration, BuildRequestConfiguration? matchingConfigurationFromCache, bool replaceProjectInstance) 2210BuildRequestConfiguration resolvedConfiguration = matchingConfigurationFromCache ?? _configCache!.GetMatchingConfiguration(unresolvedConfiguration); 2239private void ReplaceExistingProjectInstance(BuildRequestConfiguration newConfiguration, BuildRequestConfiguration existingConfiguration) 2247private BuildRequestConfiguration AddNewConfiguration(BuildRequestConfiguration unresolvedConfiguration) 2253if (_configCache!.HasConfiguration(newConfigurationId) || (newConfigurationId == BuildRequestConfiguration.InvalidConfigurationId)) 2259var newConfiguration = unresolvedConfiguration.ShallowCloneWithNewId(newConfigurationId); 2286var configuration = cacheRequest.Configuration; 2337BuildRequestConfiguration config = _configCache![request.ConfigurationId]; 2390private void HandleConfigurationRequest(int node, BuildRequestConfiguration unresolvedConfiguration) 2394BuildRequestConfiguration resolvedConfiguration = ResolveConfiguration(unresolvedConfiguration, null, false); 2415BuildRequestConfiguration configuration = _configCache![result.ConfigurationId];
BackEnd\BuildManager\CacheAggregator.cs (2)
71foreach (var config in configs) 80var newConfig = config.ShallowCloneWithNewId(_lastConfigurationId);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
342BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 433BuildRequestConfiguration config = configCache[result.ConfigurationId]; 458BuildRequestConfiguration configuration = _configCache[result.ConfigurationId]; 507BuildRequestConfiguration config = _unresolvedConfigurations[response.NodeConfigurationId]; 696private void RaiseNewConfigurationRequest(BuildRequestConfiguration config) 810BuildRequestConfiguration configuration = _configCache[completedEntry.Request.ConfigurationId]; 1137BuildRequestConfiguration matchingConfig = globalConfigCache.GetMatchingConfiguration(request.Config); 1252List<BuildRequestConfiguration> unresolvedConfigurationsToIssue = issuingEntry.GetUnresolvedConfigurationsToIssue(); 1255foreach (BuildRequestConfiguration unresolvedConfigurationToIssue in unresolvedConfigurationsToIssue) 1330private void IssueConfigurationRequest(BuildRequestConfiguration config)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (7)
91private List<BuildRequestConfiguration> _unresolvedConfigurationsToIssue; 123internal BuildRequestEntry(BuildRequest request, BuildRequestConfiguration requestConfiguration) 166public BuildRequestConfiguration RequestConfiguration { get; } 193public void WaitForConfiguration(BuildRequestConfiguration configuration) 197_unresolvedConfigurationsToIssue ??= new List<BuildRequestConfiguration>(); 276public List<BuildRequestConfiguration> GetUnresolvedConfigurationsToIssue() 280List<BuildRequestConfiguration> configurationsToIssue = _unresolvedConfigurationsToIssue;
BackEnd\Components\BuildRequestEngine\FullyQualifiedBuildRequest.cs (2)
32BuildRequestConfiguration config, 51public BuildRequestConfiguration Config { get; }
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (1)
42internal delegate void NewConfigurationRequestDelegate(BuildRequestConfiguration config);
BackEnd\Components\Caching\ConfigCache.cs (20)
21private IDictionary<int, BuildRequestConfiguration> _configurations; 43_configurations = new Dictionary<int, BuildRequestConfiguration>(); 57public BuildRequestConfiguration this[int configId] 74public void AddConfiguration(BuildRequestConfiguration config) 96BuildRequestConfiguration config = _configurations[configId]; 108public BuildRequestConfiguration GetMatchingConfiguration(BuildRequestConfiguration config) 119public BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata) 136public BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata, ConfigCreateCallback callback, bool loadProject) 140BuildRequestConfiguration configuration = GetMatchingConfiguration(configMetadata); 194foreach (var config in _configurations.Values) 199_configurations = new Dictionary<int, BuildRequestConfiguration>(); 227Dictionary<int, BuildRequestConfiguration> configurationsToKeep = new Dictionary<int, BuildRequestConfiguration>(); 236if (_configurations.TryGetValue(configId, out BuildRequestConfiguration configuration)) 286foreach (BuildRequestConfiguration configuration in _configurations.Values) 317public IEnumerator<BuildRequestConfiguration> GetEnumerator() 365(ITranslator aTranslator, ref BuildRequestConfiguration configuration) => 377capacity => new Dictionary<int, BuildRequestConfiguration>(capacity)); 400protected int GetKeyForConfiguration(BuildRequestConfiguration config)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (9)
34public IEnumerator<BuildRequestConfiguration> GetEnumerator() 49public BuildRequestConfiguration this[int configId] 67public void AddConfiguration(BuildRequestConfiguration config) 77public BuildRequestConfiguration GetMatchingConfiguration(BuildRequestConfiguration config) 79var overrideConfig = _override.GetMatchingConfiguration(config); 94public BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata) 96var overrideConfig = _override.GetMatchingConfiguration(configMetadata); 111public BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata, ConfigCreateCallback callback, bool loadProject)
BackEnd\Components\Caching\IConfigCache.cs (9)
13internal delegate BuildRequestConfiguration ConfigCreateCallback(BuildRequestConfiguration existingConfiguration, bool loadProject); 18internal interface IConfigCache : IBuildComponent, IEnumerable<BuildRequestConfiguration>, ITranslatable 25BuildRequestConfiguration this[int configId] 34void AddConfiguration(BuildRequestConfiguration config); 47BuildRequestConfiguration GetMatchingConfiguration(BuildRequestConfiguration config); 54BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata); 63BuildRequestConfiguration GetMatchingConfiguration(ConfigurationMetadata configMetadata, ConfigCreateCallback callback, bool loadProject);
BackEnd\Components\Logging\LoggingService.cs (1)
1349BuildRequestConfiguration buildRequestConfiguration = _configCache.Value[projectStartedEventArgs.ProjectId];
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
577var buildRequestConfiguration = _configCache.Value[configurationId];
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
78internal ProjectLoggingContext LogProjectStarted(BuildRequest request, BuildRequestConfiguration configuration) 94internal void LogRequestHandledFromCache(BuildRequest request, BuildRequestConfiguration configuration, BuildResult result)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (13)
29internal record CacheRequest(BuildSubmission Submission, BuildRequestConfiguration Configuration); 50private readonly ConcurrentDictionary<BuildRequestConfiguration, IReadOnlyDictionary<string, string>> _globalPropertiesPerConfiguration = new(); 128BuildRequestConfiguration buildRequestConfiguration, 162BuildRequestConfiguration? buildRequestConfiguration, 197BuildRequestConfiguration? buildRequestConfiguration, 320BuildRequestConfiguration configuration = _configCache[buildRequest.ConfigurationId]; 325private IReadOnlyDictionary<string, string> GetGlobalProperties(BuildRequestConfiguration configuration) 391public bool ShouldUseCache(BuildRequestConfiguration buildRequestConfiguration) 425private bool IsDesignTimeBuild(BuildRequestConfiguration buildRequestConfiguration) 479void EvaluateProjectIfNecessary(BuildSubmission submission, BuildRequestConfiguration configuration) 502private async Task<CacheResult> GetCacheResultAsync(BuildRequestData buildRequest, BuildRequestConfiguration buildRequestConfiguration, BuildEventContext buildEventContext, CancellationToken cancellationToken) 624private IReadOnlyCollection<ProjectGraphEntryPoint> GetGraphEntryPoints(BuildRequestConfiguration configuration) 707BuildRequestConfiguration requestConfiguration,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
367BuildRequestConfiguration config = new BuildRequestConfiguration(data, _componentHost.BuildParameters.DefaultToolsVersion);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
125BuildRequestConfiguration configuration = _requestEntry.RequestConfiguration;
BackEnd\Components\Scheduler\Scheduler.cs (17)
280return BuildRequestConfiguration.InvalidConfigurationId; 387BuildRequestConfiguration config = _configCache[result.ConfigurationId]; 1368BuildRequestConfiguration config = _configCache[request.BuildRequest.ConfigurationId]; 1666BuildRequestConfiguration configuration = _configCache[parentRequest.BuildRequest.ConfigurationId]; 1767var config = _configCache[request.ConfigurationId]; 1949BuildRequestConfiguration config = _configCache[request.ConfigurationId]; 1989(BuildRequestConfiguration requestConfig, BuildRequestConfiguration parentConfig) = GetConfigurations(); 2028(BuildRequestConfiguration RequestConfig, BuildRequestConfiguration ParentConfig) GetConfigurations() 2030BuildRequestConfiguration buildRequestConfiguration = configCache[request.ConfigurationId]; 2041BuildRequestConfiguration parentConfiguration = configCache[parentRequest.BuildRequest.ConfigurationId]; 2045string ConcatenateGlobalProperties(BuildRequestConfiguration configuration) 2129BuildRequestConfiguration configuration = _configCache[request.ConfigurationId]; 2177ErrorUtilities.VerifyThrow(request.ConfigurationId != BuildRequestConfiguration.InvalidConfigurationId, "Requests should have a valid configuration id at this point"); 2186BuildRequestConfiguration configuration = _configCache[request.ConfigurationId]; 2320int invalidWorkId = useConfigurations ? BuildRequestConfiguration.InvalidConfigurationId : BuildRequest.InvalidGlobalRequestId;
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
56this.MaximumConfigurationId = BuildRequestConfiguration.InvalidConfigurationId; 195return BuildRequestConfiguration.InvalidConfigurationId;
BackEnd\Node\InProcNode.cs (1)
263private void OnNewConfigurationRequest(BuildRequestConfiguration config)
BackEnd\Node\OutOfProcNode.cs (4)
178(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequestConfiguration, BuildRequestConfiguration.FactoryForDeserialization, this); 403private void OnNewConfigurationRequest(BuildRequestConfiguration config) 623HandleBuildRequestConfiguration(packet as BuildRequestConfiguration); 659private void HandleBuildRequestConfiguration(BuildRequestConfiguration configuration)
BackEnd\Shared\BuildRequestConfiguration.cs (14)
27internal class BuildRequestConfiguration : IEquatable<BuildRequestConfiguration>, 230private BuildRequestConfiguration(int configId, BuildRequestConfiguration other) 513ErrorUtilities.VerifyThrow(IsLoaded, $"This {nameof(BuildRequestConfiguration)} must be loaded at the end of this method"); 649public static bool operator ==(BuildRequestConfiguration left, BuildRequestConfiguration right) 681public static bool operator !=(BuildRequestConfiguration left, BuildRequestConfiguration right) 888return InternalEquals((BuildRequestConfiguration)obj); 898public bool Equals(BuildRequestConfiguration other) 956internal static BuildRequestConfiguration FactoryForDeserialization(ITranslator translator) 1002internal BuildRequestConfiguration ShallowCloneWithNewId(int newId) 1012private bool InternalEquals(BuildRequestConfiguration other) 1034/// Gets the set of project targets for this <see cref="BuildRequestConfiguration"/>. 1037/// <returns>The set of project targets for this <see cref="BuildRequestConfiguration"/>.</returns>
BackEnd\Shared\ConfigurationMetadata.cs (1)
25public ConfigurationMetadata(BuildRequestConfiguration configuration)
Microsoft.Build.Engine.UnitTests (102)
BackEnd\BuildRequestConfiguration_Tests.cs (37)
67BuildRequestConfiguration config1 = new BuildRequestConfiguration(1, data, "2.0"); 106BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data1, "2.0"); 110BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data2, "2.0"); 114BuildRequestConfiguration config3 = new BuildRequestConfiguration(data3, "2.0"); 122BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data1, "2.0"); 126BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data2, "2.0"); 130BuildRequestConfiguration config3 = new BuildRequestConfiguration(0, data3, "2.0"); 140BuildRequestConfiguration config1 = new BuildRequestConfiguration(-1, data, "2.0"); 148BuildRequestConfiguration config1 = new BuildRequestConfiguration(data, "2.0"); 158BuildRequestConfiguration config1 = new BuildRequestConfiguration(data, "2.0"); 166BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 174BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", props, "toolsVersion", Array.Empty<string>(), null), "2.0"); 183BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 197BuildRequestConfiguration config1 = new BuildRequestConfiguration(data1, "2.0"); 204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0"); 206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 233BuildRequestConfiguration config5 = new BuildRequestConfiguration(data, "2.0"); 248BuildRequestConfiguration config = new BuildRequestConfiguration(data, "2.0"); 253INodePacket packet = BuildRequestConfiguration.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); 255BuildRequestConfiguration deserializedConfig = packet as BuildRequestConfiguration; 290BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 294INodePacket packet = BuildRequestConfiguration.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); 296BuildRequestConfiguration deserializedConfig = packet as BuildRequestConfiguration; 310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0"); 364BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 466BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 495var configWithoutEvaluation = new BuildRequestConfiguration(); 570var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\BuildRequestEngine_Tests.cs (7)
268private BuildRequestConfiguration _newConfiguration_Config; 338BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 369BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 397BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 450BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 456BuildRequestConfiguration unresolvedConfig = new BuildRequestConfiguration(data2, "2.0"); 592private void Engine_NewConfigurationRequest(BuildRequestConfiguration config)
BackEnd\BuildRequestEntry_Tests.cs (10)
25BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 45BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 94BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 116BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 145BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 183BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 199BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 216BuildRequestConfiguration config = new BuildRequestConfiguration(1, data1, "2.0"); 239BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 259BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (7)
26var i = BuildRequestConfiguration.InvalidConfigurationId + 1; 255foreach (var inputConfiguration in configCache) 278aggregatedBuildResult.ConfigurationId.ShouldNotBe(BuildRequestConfiguration.InvalidConfigurationId); 288private void AssertConfigurationsEquivalent(BuildRequestConfiguration inputConfiguration, BuildRequestConfiguration aggregatedConfig) 290aggregatedConfig.ConfigurationId.ShouldNotBe(BuildRequestConfiguration.InvalidConfigurationId); 294var aggregatedConfigWithInitialId = aggregatedConfig.ShallowCloneWithNewId(inputConfiguration.ConfigurationId);
BackEnd\CacheSerialization_Tests.cs (3)
25var brq1 = new BuildRequestConfiguration( 30var brq2 = new BuildRequestConfiguration( 34var brq3 = new BuildRequestConfiguration(
BackEnd\ConfigCache_Tests.cs (8)
25var brq1 = new BuildRequestConfiguration( 35var brq2 = new BuildRequestConfiguration( 44var brq3 = new BuildRequestConfiguration( 72var brq1 = new BuildRequestConfiguration( 76var brq2 = new BuildRequestConfiguration( 80var brq3 = new BuildRequestConfiguration( 107Assert.Equal(copiedConfigurations, initialConfigurations, EqualityComparer<BuildRequestConfiguration>.Default); 114foreach (var initialConfiguration in initial)
BackEnd\ConfigurationMetadata_Tests.cs (6)
40BuildRequestConfiguration config = null; 63BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, "2.0"); 89BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 105BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 114BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 119BuildRequestConfiguration config3 = new BuildRequestConfiguration(1, data, "3.0");
BackEnd\FullyQualifiedBuildRequest_Tests.cs (1)
49BuildRequestConfiguration config = new BuildRequestConfiguration(data, "2.0");
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
842BuildRequestConfiguration config = new BuildRequestConfiguration(2, data, "4.0"); 868BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 907BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 948BuildRequestConfiguration config = new BuildRequestConfiguration(ConfigurationId, data, "4.0"); 1421BuildRequestConfiguration config = new BuildRequestConfiguration(2, data, "4.0");
BackEnd\RequestBuilder_Tests.cs (9)
80BuildRequestConfiguration configuration = CreateTestProject(1); 110BuildRequestConfiguration configuration = CreateTestProject(1); 143BuildRequestConfiguration configuration = CreateTestProject(1); 182BuildRequestConfiguration configuration = CreateTestProject(1); 226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"); 239private BuildRequestConfiguration CreateTestProject(int configId) 265BuildRequestConfiguration config = new BuildRequestConfiguration( 277private void DeleteTestProject(BuildRequestConfiguration config) 301BuildRequestConfiguration matchingConfig = configCache.GetMatchingConfiguration(request.Config);
BackEnd\Scheduler_Tests.cs (1)
735BuildRequestConfiguration config = new(configId, data, "4.0") { ProjectInitialTargets = new List<string>(), ProjectDefaultTargets = new List<string>() };
BackEnd\TargetBuilder_Tests.cs (1)
1676BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TargetEntry_Tests.cs (5)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1026BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1044BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskBuilder_Tests.cs (1)
1242BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testfile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TaskHost_Tests.cs (1)
76BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("Nothing", new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null), "2.0");