36 references to Explicit
aspire (20)
Commands\AddCommand.cs (5)
606
if (channel.Type is PackageChannelType.
Explicit
)
805
&& channel.Type is PackageChannelType.
Explicit
867
.OrderByDescending(package => package.Channel.Type is PackageChannelType.
Explicit
&&
873
.OrderByDescending(package => package.Channel.Type is PackageChannelType.
Explicit
&&
937
(isNuGetOrg ? "nuget.org" : package.Channel.Type is PackageChannelType.
Explicit
Commands\NewCommand.cs (2)
220
selectedChannel.Type is PackageChannelType.
Explicit
&&
903
.Where(g => g.Key.Type is Packaging.PackageChannelType.
Explicit
)
Commands\UpdateCommand.cs (1)
463
if (dryRun && channel.Type != PackageChannelType.
Explicit
)
Packaging\PackageChannel.cs (5)
63
public PackageChannelType Type { get; private init; } = mappings is null ? PackageChannelType.Implicit : PackageChannelType.
Explicit
;
72
Type is PackageChannelType.
Explicit
&& !string.Equals(Name, PackageChannelNames.Stable, StringComparisons.ChannelName);
108
Type is PackageChannelType.
Explicit
&&
980
if (!VersionHelper.IsLocalBuildChannel(Name) || Type is not PackageChannelType.
Explicit
|| mappings is not { Length: > 0 })
1135
Type = PackageChannelType.
Explicit
Projects\DotNetBasedAppHostServerProject.cs (1)
283
: channels.Where(c => c.Type == PackageChannelType.
Explicit
);
Projects\GuestAppHostProject.cs (2)
1937
(context.Channel.Type is PackageChannelType.
Explicit
&&
2007
var requestedChannel = context.Channel.Type is PackageChannelType.
Explicit
Projects\ProjectUpdater.cs (3)
38
if (context.DryRun && (!context.HasExplicitChannel || channel.Type != PackageChannelType.
Explicit
))
57
var hasExplicitChannelPolicy = context.HasExplicitChannel && channel.Type == PackageChannelType.
Explicit
;
444
if (!context.HasExplicitChannel || context.Channel.Type != PackageChannelType.
Explicit
)
Templating\TemplateNuGetConfigService.cs (1)
294
allChannels.Any(static c => c.Type is PackageChannelType.
Explicit
&& HasInstalledLocalBuildPackageSource(c))));
Aspire.Cli.Tests (16)
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (5)
67
var channel = channels.First(c => c.Type is PackageChannelType.
Explicit
&& string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
130
var channel = channels.First(c => c.Type is PackageChannelType.
Explicit
&& string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
202
var channel = channels.First(c => c.Type is PackageChannelType.
Explicit
&& string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
266
var channel = channels.First(c => c.Type is PackageChannelType.
Explicit
&& string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
337
var channel = channels.First(c => c.Type is PackageChannelType.
Explicit
&& string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
Packaging\PackageChannelTests.cs (4)
151
Assert.Equal(PackageChannelType.
Explicit
, channel.Type);
171
Assert.Equal(PackageChannelType.
Explicit
, channel.Type);
191
Assert.Equal(PackageChannelType.
Explicit
, channel.Type);
207
Assert.Equal(PackageChannelType.
Explicit
, channel.Type);
Packaging\PackagingServiceTests.cs (2)
817
Assert.Equal(PackageChannelType.
Explicit
, stableChannel.Type);
846
Assert.Equal(PackageChannelType.
Explicit
, stable.Type);
Projects\ProjectUpdaterTests.cs (1)
2141
HasExplicitChannel = channel.Type == PackageChannelType.
Explicit
,
Templating\TemplateNuGetConfigServiceTests.cs (4)
547
Assert.Equal(PackageChannelType.
Explicit
, selection.Channel.Type);
862
Assert.Equal(expectImplicitChannel ? PackageChannelType.Implicit : PackageChannelType.
Explicit
, selection.Channel.Type);
1250
Assert.Equal(PackageChannelType.
Explicit
, selection.Channel.Type);
1302
Assert.Equal(PackageChannelType.
Explicit
, selection.Channel.Type);