161 references to TargetFeedContentType
Microsoft.DotNet.Build.Tasks.Feed (115)
src\model\PublishingConstants.cs (84)
20
public static readonly
TargetFeedContentType
[] InstallersAndSymbols = {
21
TargetFeedContentType
.OSX,
22
TargetFeedContentType
.Deb,
23
TargetFeedContentType
.Rpm,
24
TargetFeedContentType
.Node,
25
TargetFeedContentType
.BinaryLayout,
26
TargetFeedContentType
.Installer,
27
TargetFeedContentType
.Maven,
28
TargetFeedContentType
.VSIX,
29
TargetFeedContentType
.Badge,
30
TargetFeedContentType
.Symbols,
31
TargetFeedContentType
.Other
34
public static readonly
TargetFeedContentType
[] InstallersAndChecksums = {
35
TargetFeedContentType
.OSX,
36
TargetFeedContentType
.Deb,
37
TargetFeedContentType
.Rpm,
38
TargetFeedContentType
.Node,
39
TargetFeedContentType
.BinaryLayout,
40
TargetFeedContentType
.Installer,
41
TargetFeedContentType
.Maven,
42
TargetFeedContentType
.VSIX,
43
TargetFeedContentType
.Badge,
44
TargetFeedContentType
.Checksum,
45
TargetFeedContentType
.Other
127
(
TargetFeedContentType
.Package, FeedDotNet6Shipping, AssetSelection.ShippingOnly),
128
(
TargetFeedContentType
.Package, FeedDotNet6Transport, AssetSelection.NonShippingOnly),
130
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
135
(
TargetFeedContentType
.Package, FeedDotNet6InternalShipping, AssetSelection.ShippingOnly),
136
(
TargetFeedContentType
.Package, FeedDotNet6InternalTransport, AssetSelection.NonShippingOnly),
138
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
143
(
TargetFeedContentType
.Package, FeedDotNet7Shipping, AssetSelection.ShippingOnly),
144
(
TargetFeedContentType
.Package, FeedDotNet7Transport, AssetSelection.NonShippingOnly),
146
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
151
(
TargetFeedContentType
.Package, FeedDotNet7InternalShipping, AssetSelection.ShippingOnly),
152
(
TargetFeedContentType
.Package, FeedDotNet7InternalTransport, AssetSelection.NonShippingOnly),
154
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
159
(
TargetFeedContentType
.Package, FeedDotNet8Shipping, AssetSelection.ShippingOnly),
160
(
TargetFeedContentType
.Package, FeedDotNet8Transport, AssetSelection.NonShippingOnly),
162
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
167
(
TargetFeedContentType
.Package, FeedDotNet8Workloads, AssetSelection.ShippingOnly),
168
(
TargetFeedContentType
.Package, FeedDotNet8Workloads, AssetSelection.NonShippingOnly),
170
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
175
(
TargetFeedContentType
.Package, FeedDotNet8InternalShipping, AssetSelection.ShippingOnly),
176
(
TargetFeedContentType
.Package, FeedDotNet8InternalTransport, AssetSelection.NonShippingOnly),
178
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
183
(
TargetFeedContentType
.Package, FeedDotNet9Shipping, AssetSelection.ShippingOnly),
184
(
TargetFeedContentType
.Package, FeedDotNet9Transport, AssetSelection.NonShippingOnly),
186
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
191
(
TargetFeedContentType
.Package, FeedDotNet9InternalShipping, AssetSelection.ShippingOnly),
192
(
TargetFeedContentType
.Package, FeedDotNet9InternalTransport, AssetSelection.NonShippingOnly),
194
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
199
(
TargetFeedContentType
.Package, FeedDotNet9Workloads, AssetSelection.ShippingOnly),
200
(
TargetFeedContentType
.Package, FeedDotNet9Workloads, AssetSelection.NonShippingOnly),
202
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
207
(
TargetFeedContentType
.Package, FeedDotNet10Shipping, AssetSelection.ShippingOnly),
208
(
TargetFeedContentType
.Package, FeedDotNet10Transport, AssetSelection.NonShippingOnly),
210
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
215
(
TargetFeedContentType
.Package, FeedDotNet10Workloads, AssetSelection.ShippingOnly),
216
(
TargetFeedContentType
.Package, FeedDotNet10Workloads, AssetSelection.NonShippingOnly),
218
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
223
(
TargetFeedContentType
.Package, FeedDotNetEng, AssetSelection.ShippingOnly),
224
(
TargetFeedContentType
.Package, FeedDotNetEng, AssetSelection.NonShippingOnly),
226
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
231
(
TargetFeedContentType
.Package, FeedDotNetTools, AssetSelection.ShippingOnly),
232
(
TargetFeedContentType
.Package, FeedDotNetTools, AssetSelection.NonShippingOnly),
234
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
239
(
TargetFeedContentType
.Package, FeedDotNetToolsInternal, AssetSelection.ShippingOnly),
240
(
TargetFeedContentType
.Package, FeedDotNetToolsInternal, AssetSelection.NonShippingOnly),
242
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
247
(
TargetFeedContentType
.Package, FeedDotNetExperimental, AssetSelection.ShippingOnly),
248
(
TargetFeedContentType
.Package, FeedDotNetExperimental, AssetSelection.NonShippingOnly),
250
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
255
(
TargetFeedContentType
.Package, FeedDotNetLibrariesShipping, AssetSelection.ShippingOnly),
256
(
TargetFeedContentType
.Package, FeedDotNetLibrariesTransport, AssetSelection.NonShippingOnly),
258
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
263
(
TargetFeedContentType
.Package, FeedDotNetLibrariesInternalShipping, AssetSelection.ShippingOnly),
264
(
TargetFeedContentType
.Package, FeedDotNetLibrariesInternalTransport, AssetSelection.NonShippingOnly),
266
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
271
(
TargetFeedContentType
.Package, FeedGeneralTesting, AssetSelection.ShippingOnly),
272
(
TargetFeedContentType
.Package, FeedGeneralTesting, AssetSelection.NonShippingOnly),
274
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
279
(
TargetFeedContentType
.Package, FeedGeneralTestingInternal, AssetSelection.ShippingOnly),
280
(
TargetFeedContentType
.Package, FeedGeneralTestingInternal, AssetSelection.NonShippingOnly),
282
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
src\model\SetupTargetFeedConfigV3.cs (7)
101
TargetFeedContentType
.Package,
114
TargetFeedContentType
.Symbols,
128
foreach (
var
type in spec.ContentTypes)
140
if (IsStableBuild && ((type is
TargetFeedContentType
.Package && spec.Assets == AssetSelection.ShippingOnly) || type is
TargetFeedContentType
.Symbols))
147
if (type is
TargetFeedContentType
.Package &&
153
else if (type is
TargetFeedContentType
.Package &&
src\model\TargetChannelConfig.cs (8)
145
public ImmutableList<
TargetFeedContentType
> ContentTypes { get; }
149
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
[] types, string feed) tuple)
154
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
[] types, string feed, AssetSelection assets) tuple)
159
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
type, string feed) tuple)
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))
197
foreach (
var
t in ContentTypes)
src\model\TargetFeedConfig.cs (2)
22
public
TargetFeedContentType
ContentType { get; }
65
public TargetFeedConfig(
TargetFeedContentType
contentType,
src\PublishArtifactsInManifestBase.cs (12)
186
public readonly Dictionary<
TargetFeedContentType
, HashSet<TargetFeedConfig>> FeedConfigs =
187
new Dictionary<
TargetFeedContentType
, HashSet<TargetFeedConfig>>();
189
private readonly Dictionary<
TargetFeedContentType
, HashSet<PackageArtifactModel>> PackagesByCategory =
190
new Dictionary<
TargetFeedContentType
, HashSet<PackageArtifactModel>>();
192
private readonly Dictionary<
TargetFeedContentType
, HashSet<BlobArtifactModel>> BlobsByCategory =
193
new Dictionary<
TargetFeedContentType
, HashSet<BlobArtifactModel>>();
389
var
category = packagesPerCategory.Key;
547
HashSet<TargetFeedConfig> feedConfigsForSymbols = FeedConfigs[
TargetFeedContentType
.Symbols];
786
var
category = packagesPerCategory.Key;
1010
var
category = blobsPerCategory.Key;
1092
if (!Enum.TryParse(category, ignoreCase: true, out
TargetFeedContentType
categoryKey))
1120
if (!Enum.TryParse(category, ignoreCase: true, out
TargetFeedContentType
categoryKey))
src\PublishArtifactsInManifestV3.cs (1)
174
TargetFeedContentType
categoryKey = feedConfig.ContentType;
src\PublishSignedAssets.cs (1)
83
TargetFeedConfig targetFeedConfig = new TargetFeedConfig(
TargetFeedContentType
.Package, feedUrl, FeedType.AzDoNugetFeed, AzureDevOpsPersonalAccessToken);
Microsoft.DotNet.Build.Tasks.Feed.Tests (46)
GeneralTests.cs (6)
31
foreach (
TargetFeedContentType
type in Enum.GetValues(typeof(
TargetFeedContentType
)))
33
if (type ==
TargetFeedContentType
.None)
209
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
222
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
243
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
PublishArtifactsInManifestTests.cs (1)
104
TargetFeedConfig config = new TargetFeedConfig(
TargetFeedContentType
.Package, "testUrl", FeedType.AzDoNugetFeed, "tokenValue");
PublishToSymbolServerTest.cs (4)
51
TargetFeedContentType
.Symbols,
88
TargetFeedContentType
.Symbols,
200
TargetFeedContentType
.Symbols,
221
task.FeedConfigs.Add(
TargetFeedContentType
.Symbols, feedConfigsForSymbols);
SetupTargetFeedConfigV3Tests.cs (35)
42
private readonly List<
TargetFeedContentType
> InstallersAndSymbols = new List<
TargetFeedContentType
>() {
43
TargetFeedContentType
.OSX,
44
TargetFeedContentType
.Deb,
45
TargetFeedContentType
.Rpm,
46
TargetFeedContentType
.Node,
47
TargetFeedContentType
.BinaryLayout,
48
TargetFeedContentType
.Installer,
49
TargetFeedContentType
.Maven,
50
TargetFeedContentType
.VSIX,
51
TargetFeedContentType
.Badge,
52
TargetFeedContentType
.Symbols,
53
TargetFeedContentType
.Other
94
TargetFeedContentType
.Package,
108
TargetFeedContentType
.Symbols,
122
TargetFeedContentType
.Package,
136
foreach (
var
contentType in InstallersAndSymbols)
138
if (contentType ==
TargetFeedContentType
.Symbols)
158
TargetFeedContentType
.Checksum,
205
TargetFeedContentType
.Package,
218
TargetFeedContentType
.Package,
232
foreach (
var
contentType in InstallersAndSymbols)
251
TargetFeedContentType
.Checksum,
268
TargetFeedContentType
.Symbols,
313
TargetFeedContentType
.Package,
327
TargetFeedContentType
.Package,
341
foreach (
var
contentType in InstallersAndSymbols)
360
TargetFeedContentType
.Checksum,
376
TargetFeedContentType
.Symbols,
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);