11 writes to Features
aspire (1)
Configuration\AspireConfigFile.cs (1)
484config.Features = settings.Features;
Aspire.Cli.Tests (10)
Configuration\AspireConfigFileTests.cs (1)
700Features = new Dictionary<string, bool>
Configuration\KnownFeaturesTests.cs (2)
22config.Features = new Dictionary<string, bool> { [KnownFeatures.AppHostServerV2] = value }; 43config.Features = new Dictionary<string, bool>
Projects\GuestAppHostProjectTests.cs (3)
73Features = new() { [KnownFeatures.AppHostServerV2] = true } 126Features = new Dictionary<string, bool> 2202Features = new() { [KnownFeatures.AppHostServerV2] = true }
Projects\NativeAppHostServerProjectTests.cs (4)
41new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(enabled.FullName); 42new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = false } }.Save(disabled.FullName); 59new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path); 71new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
22 references to Features
aspire (2)
KnownFeatures.cs (2)
42=> config?.Features is { } features && features.TryGetValue(AppHostServerV2, out var enabled) && enabled; 151return config.Features is { } projectFeatures
Aspire.Cli.Tests (20)
Commands\ConfigCommandTests.cs (2)
831Assert.NotNull(config?.Features); 832Assert.True(config.Features[featureName]);
Commands\TemplateSourceStartupTests.cs (2)
332Assert.NotNull(migrated.Features); 333Assert.False(migrated.Features["defaultWatchEnabled"]);
Configuration\AspireConfigFileTests.cs (9)
667Assert.NotNull(result.Features); 668Assert.True(result.Features["polyglotSupportEnabled"]); 669Assert.False(result.Features["showAllTemplates"]); 688Assert.NotNull(result.Features); 689Assert.True(result.Features["polyglotSupportEnabled"]); 690Assert.False(result.Features["showAllTemplates"]); 710Assert.NotNull(loaded?.Features); 711Assert.True(loaded.Features["polyglotSupportEnabled"]); 712Assert.False(loaded.Features["showAllTemplates"]);
Configuration\ConfigSourceServiceGitTests.cs (1)
479Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.Features);
Configuration\ConfigurationHelperTests.cs (4)
424Assert.NotNull(config?.Features); 425Assert.True(config.Features["polyglotSupportEnabled"]); 426Assert.False(config.Features["showAllTemplates"]); 587Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.Features);
Configuration\ConfigurationServiceTests.cs (2)
776Assert.NotNull(config?.Features); 777Assert.True(config.Features["polyglotSupportEnabled"]);