84 references to AssetSelection
Microsoft.DotNet.Build.Tasks.Feed (60)
src\model\PublishingConstants.cs (40)
127(TargetFeedContentType.Package, FeedDotNet6Shipping, AssetSelection.ShippingOnly), 128(TargetFeedContentType.Package, FeedDotNet6Transport, AssetSelection.NonShippingOnly), 135(TargetFeedContentType.Package, FeedDotNet6InternalShipping, AssetSelection.ShippingOnly), 136(TargetFeedContentType.Package, FeedDotNet6InternalTransport, AssetSelection.NonShippingOnly), 143(TargetFeedContentType.Package, FeedDotNet7Shipping, AssetSelection.ShippingOnly), 144(TargetFeedContentType.Package, FeedDotNet7Transport, AssetSelection.NonShippingOnly), 151(TargetFeedContentType.Package, FeedDotNet7InternalShipping, AssetSelection.ShippingOnly), 152(TargetFeedContentType.Package, FeedDotNet7InternalTransport, AssetSelection.NonShippingOnly), 159(TargetFeedContentType.Package, FeedDotNet8Shipping, AssetSelection.ShippingOnly), 160(TargetFeedContentType.Package, FeedDotNet8Transport, AssetSelection.NonShippingOnly), 167(TargetFeedContentType.Package, FeedDotNet8Workloads, AssetSelection.ShippingOnly), 168(TargetFeedContentType.Package, FeedDotNet8Workloads, AssetSelection.NonShippingOnly), 175(TargetFeedContentType.Package, FeedDotNet8InternalShipping, AssetSelection.ShippingOnly), 176(TargetFeedContentType.Package, FeedDotNet8InternalTransport, AssetSelection.NonShippingOnly), 183(TargetFeedContentType.Package, FeedDotNet9Shipping, AssetSelection.ShippingOnly), 184(TargetFeedContentType.Package, FeedDotNet9Transport, AssetSelection.NonShippingOnly), 191(TargetFeedContentType.Package, FeedDotNet9InternalShipping, AssetSelection.ShippingOnly), 192(TargetFeedContentType.Package, FeedDotNet9InternalTransport, AssetSelection.NonShippingOnly), 199(TargetFeedContentType.Package, FeedDotNet9Workloads, AssetSelection.ShippingOnly), 200(TargetFeedContentType.Package, FeedDotNet9Workloads, AssetSelection.NonShippingOnly), 207(TargetFeedContentType.Package, FeedDotNet10Shipping, AssetSelection.ShippingOnly), 208(TargetFeedContentType.Package, FeedDotNet10Transport, AssetSelection.NonShippingOnly), 215(TargetFeedContentType.Package, FeedDotNet10Workloads, AssetSelection.ShippingOnly), 216(TargetFeedContentType.Package, FeedDotNet10Workloads, AssetSelection.NonShippingOnly), 223(TargetFeedContentType.Package, FeedDotNetEng, AssetSelection.ShippingOnly), 224(TargetFeedContentType.Package, FeedDotNetEng, AssetSelection.NonShippingOnly), 231(TargetFeedContentType.Package, FeedDotNetTools, AssetSelection.ShippingOnly), 232(TargetFeedContentType.Package, FeedDotNetTools, AssetSelection.NonShippingOnly), 239(TargetFeedContentType.Package, FeedDotNetToolsInternal, AssetSelection.ShippingOnly), 240(TargetFeedContentType.Package, FeedDotNetToolsInternal, AssetSelection.NonShippingOnly), 247(TargetFeedContentType.Package, FeedDotNetExperimental, AssetSelection.ShippingOnly), 248(TargetFeedContentType.Package, FeedDotNetExperimental, AssetSelection.NonShippingOnly), 255(TargetFeedContentType.Package, FeedDotNetLibrariesShipping, AssetSelection.ShippingOnly), 256(TargetFeedContentType.Package, FeedDotNetLibrariesTransport, AssetSelection.NonShippingOnly), 263(TargetFeedContentType.Package, FeedDotNetLibrariesInternalShipping, AssetSelection.ShippingOnly), 264(TargetFeedContentType.Package, FeedDotNetLibrariesInternalTransport, AssetSelection.NonShippingOnly), 271(TargetFeedContentType.Package, FeedGeneralTesting, AssetSelection.ShippingOnly), 272(TargetFeedContentType.Package, FeedGeneralTesting, AssetSelection.NonShippingOnly), 279(TargetFeedContentType.Package, FeedGeneralTestingInternal, AssetSelection.ShippingOnly), 280(TargetFeedContentType.Package, FeedGeneralTestingInternal, AssetSelection.NonShippingOnly),
src\model\SetupTargetFeedConfigV3.cs (4)
106assetSelection: AssetSelection.ShippingOnly, 140if (IsStableBuild && ((type is TargetFeedContentType.Package && spec.Assets == AssetSelection.ShippingOnly) || type is TargetFeedContentType.Symbols)) 148spec.Assets == AssetSelection.NonShippingOnly && 154spec.Assets == AssetSelection.ShippingOnly &&
src\model\TargetChannelConfig.cs (7)
147public AssetSelection Assets { get; } 151return new TargetFeedSpecification(tuple.types, tuple.feed, AssetSelection.All); 154public static implicit operator TargetFeedSpecification((TargetFeedContentType[] types, string feed, AssetSelection assets) tuple) 161return new TargetFeedSpecification(ImmutableList.Create(tuple.type), tuple.feed, AssetSelection.All); 164public static implicit operator TargetFeedSpecification((TargetFeedContentType type, string feed, AssetSelection assets) tuple) 169public TargetFeedSpecification(IEnumerable<TargetFeedContentType> contentTypes, string feedUrl, AssetSelection assets) 175if (assets == AssetSelection.All && contentTypes.Contains(TargetFeedContentType.Package))
src\model\TargetFeedConfig.cs (3)
30public AssetSelection AssetSelection { get; } 70AssetSelection assetSelection = AssetSelection.All,
src\PublishArtifactsInManifestBase.cs (6)
836AssetSelection.All => packages, 837AssetSelection.NonShippingOnly => packages.Where(p => p.NonShipping).ToHashSet(), 838AssetSelection.ShippingOnly => packages.Where(p => !p.NonShipping).ToHashSet(), 1060AssetSelection.All => blobs, 1061AssetSelection.NonShippingOnly => blobs.Where(p => p.NonShipping).ToHashSet(), 1062AssetSelection.ShippingOnly => blobs.Where(p => !p.NonShipping).ToHashSet(),
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
GeneralTests.cs (3)
209new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly) 222new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly) 243new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
PublishToSymbolServerTest.cs (3)
56AssetSelection.All, 93AssetSelection.All, 205AssetSelection.All,
SetupTargetFeedConfigV3Tests.cs (18)
99assetSelection: AssetSelection.ShippingOnly, 113assetSelection: AssetSelection.All, 127assetSelection: AssetSelection.NonShippingOnly, 149assetSelection: AssetSelection.All, 163assetSelection: AssetSelection.All, 210AssetSelection.ShippingOnly, 223AssetSelection.NonShippingOnly, 241assetSelection: AssetSelection.All, 256assetSelection: AssetSelection.All, 273assetSelection: AssetSelection.All, 318assetSelection: AssetSelection.ShippingOnly, 332assetSelection: AssetSelection.NonShippingOnly, 350assetSelection: AssetSelection.All, 365assetSelection: AssetSelection.All, 381assetSelection: AssetSelection.All, 443Action shouldFail = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed", AssetSelection.All); 446Action shouldPassShippingOnly = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed", AssetSelection.ShippingOnly); 449Action shouldPassNonShippingOnly = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed", AssetSelection.NonShippingOnly);