131 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)
113
foreach (
var
packageType in PublishingConstants.Packages)
131
TargetFeedContentType
.Symbols,
146
foreach (
var
type in spec.ContentTypes)
158
if (IsStableBuild && ((PublishingConstants.Packages.Contains(type) && spec.Assets == AssetSelection.ShippingOnly) || type is
TargetFeedContentType
.Symbols))
src\model\SetupTargetFeedConfigV4.cs (2)
112
foreach (
var
packageType in PublishingConstants.Packages)
132
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 (52)
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)
130
TargetFeedConfig config = new TargetFeedConfig(
TargetFeedContentType
.Package, "testUrl", FeedType.AzDoNugetFeed, "tokenValue");
PublishToSymbolServerTest.cs (4)
47
TargetFeedContentType
.Symbols,
86
TargetFeedContentType
.Symbols,
200
TargetFeedContentType
.Symbols,
223
task.FeedConfigs.Add(
TargetFeedContentType
.Symbols, feedConfigsForSymbols);
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,
198
foreach (
var
packageType in PublishingConstants.Packages)
231
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
251
TargetFeedContentType
.Checksum,
269
TargetFeedContentType
.Symbols,
312
foreach (
var
packageType in PublishingConstants.Packages)
347
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
367
TargetFeedContentType
.Checksum,
384
TargetFeedContentType
.Symbols,
451
Action shouldFail = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.All);
454
Action shouldPassShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.ShippingOnly);
457
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,
192
foreach (
var
contentType in PublishingConstants.Packages)
223
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
243
TargetFeedContentType
.Checksum,
285
foreach (
var
contentType in PublishingConstants.Packages)
318
foreach (
var
contentType in PublishingConstants.InstallersAndSymbols)
338
TargetFeedContentType
.Checksum,
403
Action shouldFail = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.All);
406
Action shouldPassShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.ShippingOnly);
409
Action shouldPassNonShippingOnly = () => new TargetFeedSpecification(new
TargetFeedContentType
[] {
TargetFeedContentType
.Package }, "FooFeed", AssetSelection.NonShippingOnly);