21 writes to Channel
aspire (12)
Configuration\AspireConfigFile.cs (1)
416config.Channel = settings.Channel;
Program.cs (1)
186config.Channel = null;
Projects\GuestAppHostProject.cs (2)
1505config.Channel = explicitChannelName; 1543config.Channel = explicitChannelName;
Projects\ProjectUpdater.cs (1)
287configToSave.Channel = channel.Name;
Scaffolding\ScaffoldingService.cs (1)
114config.Channel = context.Channel;
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
80config.Channel = inputs.Channel;
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
72config.Channel = inputs.Channel;
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
73config.Channel = inputs.Channel;
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
86config.Channel = inputs.Channel;
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
71config.Channel = inputs.Channel;
Templating\DotNetTemplateFactory.cs (1)
548config.Channel = selectedTemplateDetails.Channel.Name;
Aspire.Cli.Tests (9)
Configuration\AspireConfigFileTests.cs (1)
181Channel = "daily"
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (2)
49config.Channel = "staging"; 94config.Channel = "staging";
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (2)
40config.Channel = "staging"; 84config.Channel = "staging";
Packaging\PackageChannelTests.cs (3)
435config.Channel = PackageChannelNames.Local; 750config.Channel = PackageChannelNames.Local; 781config.Channel = PackageChannelNames.Local;
Projects\PrebuiltAppHostServerTests.cs (1)
2298config.Channel = PackageChannelNames.Staging;
26 references to Channel
aspire (9)
Commands\InitCommand.cs (1)
704return AspireConfigFile.Load(directory.FullName)?.Channel;
Commands\IntegrationPackageSearchService.cs (1)
161return (AspireConfigFile.Load(appHostDirectory)?.Channel
Projects\DotNetBasedAppHostServerProject.cs (1)
326?? AspireConfigFile.Load(_appPath)?.Channel
Projects\GuestAppHostProject.cs (4)
308var (buildSuccess, buildOutput, _, _) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, packageSourceOverride, cancellationToken); 430var (prepareSuccess, prepareOutput, channelName, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1064var (prepareSuccess, prepareOutput, _, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1499var explicitChannelChanged = explicitChannelName is not null && !string.Equals(config.Channel, explicitChannelName, StringComparisons.CliInputOrOutput);
Projects\PrebuiltAppHostServer.cs (1)
973var channelName = AspireConfigFile.Load(_appDirectoryPath)?.Channel
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
358var channel = config?.Channel;
Aspire.Cli.Tests (17)
Commands\NewCommandTemplateConfigPersistenceTests.cs (4)
307Assert.Equal(PrChannelName, csharpConfig.Channel); 318Assert.Equal(PrChannelName, config.Channel); 331Assert.Equal(PrChannelName, dotNetConfig.Channel); 411return config?.Channel;
Commands\NewCommandTests.cs (3)
157Assert.Equal(PackageChannelNames.Staging, config.Channel); 555Assert.Equal("pr-12345", config.Channel); 1993channelSeenByProject = config?.Channel;
Configuration\AspireConfigFileTests.cs (3)
38Assert.Equal("daily", result.Channel); 109Assert.Equal("stable", result.Channel); 170Assert.Null(result.Channel);
Configuration\ConfigurationServiceTests.cs (1)
341Assert.Equal("true", config.Channel);
Projects\GuestAppHostProjectTests.cs (5)
772Assert.Null(reloaded.Channel); 891Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 946Assert.Null(reloaded.Channel); 997Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 1070Assert.Equal(seededChannel, reloaded.Channel);
Scaffolding\ChannelReseedTests.cs (1)
72Assert.Equal(expectedPersistedChannel, reloaded.Channel);