2 implementations of HasConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ConfigCache.cs (1)
179public bool HasConfiguration(int configId)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
116public bool HasConfiguration(int configId)
14 references to HasConfiguration
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2253if (_configCache!.HasConfiguration(newConfigurationId) || (newConfigurationId == BuildRequestConfiguration.InvalidConfigurationId))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
334ErrorUtilities.VerifyThrow(_configCache.HasConfiguration(request.ConfigurationId), "Request {0} refers to configuration {1} which is not known to the engine.", request.GlobalRequestId, request.ConfigurationId); 513if (!globalConfigurations.HasConfiguration(response.GlobalConfigurationId)) 1301while (_unresolvedConfigurations.HasConfiguration(_nextUnresolvedConfigurationId)); 1334ErrorUtilities.VerifyThrow(_unresolvedConfigurations.HasConfiguration(config.ConfigurationId), "NoUnresolvedConfiguration");
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
133return _override.HasConfiguration(configId);
BackEnd\Components\Logging\LoggingService.cs (1)
1348ErrorUtilities.VerifyThrow(_configCache.Value.HasConfiguration(projectStartedEventArgs.ProjectId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
576ErrorUtilities.VerifyThrow(_configCache.Value.HasConfiguration(configurationId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Scheduler\Scheduler.cs (2)
1764_configCache.HasConfiguration(request.ConfigurationId), 2038configCache.HasConfiguration(parentRequest.BuildRequest.ConfigurationId),
Microsoft.Build.Engine.UnitTests (4)
BackEnd\CacheSerialization_Tests.cs (4)
106Assert.True(result.ConfigCache.HasConfiguration(1)); 107Assert.False(result.ConfigCache.HasConfiguration(2)); 108Assert.False(result.ConfigCache.HasConfiguration(3)); 138Assert.True(result.ConfigCache.HasConfiguration(1));