132 references to TargetFeedContentType
Microsoft.DotNet.Build.Tasks.Feed (79)
src\model\PublishingConstants.cs (62)
22
public static readonly
TargetFeedContentType
[] InstallersAndSymbols = {
23
TargetFeedContentType
.OSX,
24
TargetFeedContentType
.Deb,
25
TargetFeedContentType
.Rpm,
26
TargetFeedContentType
.Node,
27
TargetFeedContentType
.BinaryLayout,
28
TargetFeedContentType
.Installer,
29
TargetFeedContentType
.Maven,
30
TargetFeedContentType
.VSIX,
31
TargetFeedContentType
.Badge,
32
TargetFeedContentType
.Symbols,
33
TargetFeedContentType
.Other
36
public static readonly
TargetFeedContentType
[] InstallersAndChecksums = {
37
TargetFeedContentType
.OSX,
38
TargetFeedContentType
.Deb,
39
TargetFeedContentType
.Rpm,
40
TargetFeedContentType
.Node,
41
TargetFeedContentType
.BinaryLayout,
42
TargetFeedContentType
.Installer,
43
TargetFeedContentType
.Maven,
44
TargetFeedContentType
.VSIX,
45
TargetFeedContentType
.Badge,
46
TargetFeedContentType
.Checksum,
47
TargetFeedContentType
.Other
50
public static readonly
TargetFeedContentType
[] Packages = {
51
TargetFeedContentType
.Package,
52
TargetFeedContentType
.CorePackage,
53
TargetFeedContentType
.ToolingPackage,
54
TargetFeedContentType
.InfrastructurePackage,
55
TargetFeedContentType
.LibraryPackage,
141
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
149
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
157
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
165
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
173
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
181
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
189
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
197
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
205
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
213
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
218
(
TargetFeedContentType
.Package, FeedDotNet10Shipping, AssetSelection.ShippingOnly),
219
(
TargetFeedContentType
.Package, FeedDotNet10Transport, AssetSelection.NonShippingOnly),
220
(
TargetFeedContentType
.InfrastructurePackage, FeedDotNetEng, AssetSelection.ShippingOnly),
221
(
TargetFeedContentType
.InfrastructurePackage, FeedDotNetEng, AssetSelection.NonShippingOnly),
222
(
TargetFeedContentType
.CorePackage, FeedDotNet10Shipping, AssetSelection.ShippingOnly),
223
(
TargetFeedContentType
.CorePackage, FeedDotNet10Transport, AssetSelection.NonShippingOnly),
224
(
TargetFeedContentType
.LibraryPackage, FeedDotNetLibrariesShipping, AssetSelection.ShippingOnly),
225
(
TargetFeedContentType
.LibraryPackage, FeedDotNetLibrariesTransport, AssetSelection.NonShippingOnly),
226
(
TargetFeedContentType
.ToolingPackage, FeedDotNetTools, AssetSelection.ShippingOnly),
227
(
TargetFeedContentType
.ToolingPackage, FeedDotNetTools, AssetSelection.NonShippingOnly),
229
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
237
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
245
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
253
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
261
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
269
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
277
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
285
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
293
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
301
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
309
(
TargetFeedContentType
.Checksum, FeedStagingForChecksums),
317
(
TargetFeedContentType
.Checksum, FeedStagingInternalForChecksums),
src\model\SetupTargetFeedConfigV3.cs (4)
109
foreach (
var
packageType in PublishingConstants.Packages)
127
TargetFeedContentType
.Symbols,
142
foreach (
var
type in spec.ContentTypes)
154
if (IsStableBuild && ((PublishingConstants.Packages.Contains(type) && spec.Assets == AssetSelection.ShippingOnly) || type is
TargetFeedContentType
.Symbols))
src\model\SetupTargetFeedConfigV4.cs (2)
108
foreach (
var
packageType in PublishingConstants.Packages)
128
foreach (
var
type in spec.ContentTypes)
src\model\TargetChannelConfig.cs (8)
157
public ImmutableList<
TargetFeedContentType
> ContentTypes { get; }
161
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
[] types, string feed) tuple)
166
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
[] types, string feed, AssetSelection assets) tuple)
171
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
type, string feed) tuple)
176
public static implicit operator TargetFeedSpecification((
TargetFeedContentType
type, string feed, AssetSelection assets) tuple)
181
public TargetFeedSpecification(IEnumerable<
TargetFeedContentType
> contentTypes, string feedUrl, AssetSelection assets)
187
if (assets == AssetSelection.All && contentTypes.Contains(
TargetFeedContentType
.Package))
209
foreach (
var
t in ContentTypes)
src\model\TargetFeedConfig.cs (2)
23
public
TargetFeedContentType
ContentType { get; }
67
public TargetFeedConfig(
TargetFeedContentType
contentType,
src\PublishSignedAssets.cs (1)
83
TargetFeedConfig targetFeedConfig = new TargetFeedConfig(
TargetFeedContentType
.Package, feedUrl, FeedType.AzDoNugetFeed, AzureDevOpsPersonalAccessToken);
Microsoft.DotNet.Build.Tasks.Feed.Tests (53)
GeneralTests.cs (6)
31
foreach (
TargetFeedContentType
type in Enum.GetValues(typeof(
TargetFeedContentType
)))
33
if (type ==
TargetFeedContentType
.None)
211
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
225
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
247
new (new[] {
TargetFeedContentType
.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
LatestLinksManagerTests.cs (7)
28
contentType:
TargetFeedContentType
.Installer,
46
contentType:
TargetFeedContentType
.Installer,
64
contentType:
TargetFeedContentType
.Installer,
92
contentType:
TargetFeedContentType
.Other,
128
contentType:
TargetFeedContentType
.Other,
158
contentType:
TargetFeedContentType
.Other,
195
contentType:
TargetFeedContentType
.Other,
PublishArtifactsInManifestTests.cs (1)
128
TargetFeedConfig config = new TargetFeedConfig(
TargetFeedContentType
.Package, "testUrl", FeedType.AzDoNugetFeed, "tokenValue");
PublishToSymbolServerTest.cs (5)
47
TargetFeedContentType
.Symbols,
86
TargetFeedContentType
.Symbols,
205
TargetFeedContentType
.Symbols,
228
task.FeedConfigs.Add(
TargetFeedContentType
.Symbols, feedConfigsForSymbols);
229
task.BlobsByCategory.Add(
TargetFeedContentType
.Symbols, new HashSet<Manifest.BlobArtifactModel>()
SetupTargetFeedConfigV3Tests.cs (19)
78
foreach (
var
contentType in PublishingConstants.Packages)
113
TargetFeedContentType
.Symbols,
128
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
130
if (contentType ==
TargetFeedContentType
.Symbols)
151
TargetFeedContentType
.Checksum,
197
foreach (
var
packageType in PublishingConstants.Packages)
230
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
250
TargetFeedContentType
.Checksum,
268
TargetFeedContentType
.Symbols,
310
foreach (
var
packageType in PublishingConstants.Packages)
345
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
365
TargetFeedContentType
.Checksum,
382
TargetFeedContentType
.Symbols,
448
Action shouldFail = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.All);
451
Action shouldPassShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.ShippingOnly);
454
Action shouldPassNonShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.NonShippingOnly);
SetupTargetFeedConfigV4Tests.cs (15)
80
foreach (
var
contentType in PublishingConstants.Packages)
128
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
147
TargetFeedContentType
.Checksum,
191
foreach (
var
contentType in PublishingConstants.Packages)
222
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
242
TargetFeedContentType
.Checksum,
283
foreach (
var
contentType in PublishingConstants.Packages)
316
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
336
TargetFeedContentType
.Checksum,
400
Action shouldFail = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.All);
403
Action shouldPassShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.ShippingOnly);
406
Action shouldPassNonShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.NonShippingOnly);