78 references to AssetSelection
Microsoft.DotNet.Build.Tasks.Feed (54)
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)
110
assetSelection:
AssetSelection
.ShippingOnly,
144
if (IsStableBuild && ((type is TargetFeedContentType.Package && spec.Assets ==
AssetSelection
.ShippingOnly) || type is TargetFeedContentType.Symbols))
152
spec.Assets ==
AssetSelection
.NonShippingOnly &&
158
spec.Assets ==
AssetSelection
.ShippingOnly &&
src\model\TargetChannelConfig.cs (7)
147
public
AssetSelection
Assets { get; }
151
return new TargetFeedSpecification(tuple.types, tuple.feed,
AssetSelection
.All);
154
public static implicit operator TargetFeedSpecification((TargetFeedContentType[] types, string feed,
AssetSelection
assets) tuple)
161
return new TargetFeedSpecification(ImmutableList.Create(tuple.type), tuple.feed,
AssetSelection
.All);
164
public static implicit operator TargetFeedSpecification((TargetFeedContentType type, string feed,
AssetSelection
assets) tuple)
169
public TargetFeedSpecification(IEnumerable<TargetFeedContentType> contentTypes, string feedUrl,
AssetSelection
assets)
175
if (assets ==
AssetSelection
.All && contentTypes.Contains(TargetFeedContentType.Package))
src\model\TargetFeedConfig.cs (3)
30
public
AssetSelection
AssetSelection { get; }
70
AssetSelection
assetSelection =
AssetSelection
.All,
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
GeneralTests.cs (3)
209
new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl,
AssetSelection
.ShippingOnly)
222
new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl,
AssetSelection
.ShippingOnly)
243
new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl,
AssetSelection
.ShippingOnly)
PublishToSymbolServerTest.cs (3)
56
AssetSelection
.All,
93
AssetSelection
.All,
205
AssetSelection
.All,
SetupTargetFeedConfigV3Tests.cs (18)
99
assetSelection:
AssetSelection
.ShippingOnly,
113
assetSelection:
AssetSelection
.All,
127
assetSelection:
AssetSelection
.NonShippingOnly,
149
assetSelection:
AssetSelection
.All,
163
assetSelection:
AssetSelection
.All,
210
AssetSelection
.ShippingOnly,
223
AssetSelection
.NonShippingOnly,
241
assetSelection:
AssetSelection
.All,
256
assetSelection:
AssetSelection
.All,
273
assetSelection:
AssetSelection
.All,
318
assetSelection:
AssetSelection
.ShippingOnly,
332
assetSelection:
AssetSelection
.NonShippingOnly,
350
assetSelection:
AssetSelection
.All,
365
assetSelection:
AssetSelection
.All,
381
assetSelection:
AssetSelection
.All,
443
Action shouldFail = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed",
AssetSelection
.All);
446
Action shouldPassShippingOnly = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed",
AssetSelection
.ShippingOnly);
449
Action shouldPassNonShippingOnly = () => new TargetFeedSpecification(new TargetFeedContentType[] { TargetFeedContentType.Package }, "FooFeed",
AssetSelection
.NonShippingOnly);