internal void Update() { var configurationManager = _project.ConfigurationManager; var projectConfigurations = Enumerable.Empty <ProjectConfiguration>(); if (configurationManager != null) { var configurationNames = ((IEnumerable)configurationManager.ConfigurationRowNames)?.OfType <string>(); var platformNames = ((IEnumerable)configurationManager.PlatformNames)?.OfType <string>(); if ((configurationNames != null) && (platformNames != null)) { projectConfigurations = configurationNames .SelectMany(configuration => platformNames .Where(platform => _projectFile.HasConfiguration(configuration, platform)) .Select(platform => new ProjectConfiguration(this, configuration, platform))); } } _internalSpecificProjectConfigurations.SynchronizeWith(projectConfigurations.ToArray()); _defaultProjectConfiguration.SetProjectFile(_projectFile); _internalSpecificProjectConfigurations.ForEach(config => config.SetProjectFile(_projectFile)); }
internal void Update() { var projectConfigurations = this.GetProjectConfigurations().ToArray(); _internalSpecificProjectConfigurations.SynchronizeWith(projectConfigurations); _defaultProjectConfiguration.SetProjectFile(_projectFile); _internalSpecificProjectConfigurations.ForEach(config => config.SetProjectFile(_projectFile)); }