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