161 references to TargetFeedContentType
Microsoft.DotNet.Build.Tasks.Feed (115)
src\model\PublishingConstants.cs (84)
20public static readonly TargetFeedContentType[] InstallersAndSymbols = { 21TargetFeedContentType.OSX, 22TargetFeedContentType.Deb, 23TargetFeedContentType.Rpm, 24TargetFeedContentType.Node, 25TargetFeedContentType.BinaryLayout, 26TargetFeedContentType.Installer, 27TargetFeedContentType.Maven, 28TargetFeedContentType.VSIX, 29TargetFeedContentType.Badge, 30TargetFeedContentType.Symbols, 31TargetFeedContentType.Other 34public static readonly TargetFeedContentType[] InstallersAndChecksums = { 35TargetFeedContentType.OSX, 36TargetFeedContentType.Deb, 37TargetFeedContentType.Rpm, 38TargetFeedContentType.Node, 39TargetFeedContentType.BinaryLayout, 40TargetFeedContentType.Installer, 41TargetFeedContentType.Maven, 42TargetFeedContentType.VSIX, 43TargetFeedContentType.Badge, 44TargetFeedContentType.Checksum, 45TargetFeedContentType.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)
101TargetFeedContentType.Package, 114TargetFeedContentType.Symbols, 128foreach (var type in spec.ContentTypes) 140if (IsStableBuild && ((type is TargetFeedContentType.Package && spec.Assets == AssetSelection.ShippingOnly) || type is TargetFeedContentType.Symbols)) 147if (type is TargetFeedContentType.Package && 153else if (type is TargetFeedContentType.Package &&
src\model\TargetChannelConfig.cs (8)
145public ImmutableList<TargetFeedContentType> ContentTypes { get; } 149public static implicit operator TargetFeedSpecification((TargetFeedContentType[] types, string feed) tuple) 154public static implicit operator TargetFeedSpecification((TargetFeedContentType[] types, string feed, AssetSelection assets) tuple) 159public static implicit operator TargetFeedSpecification((TargetFeedContentType type, string feed) tuple) 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)) 197foreach (var t in ContentTypes)
src\model\TargetFeedConfig.cs (2)
22public TargetFeedContentType ContentType { get; } 65public TargetFeedConfig(TargetFeedContentType contentType,
src\PublishArtifactsInManifestBase.cs (12)
186public readonly Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>> FeedConfigs = 187new Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>>(); 189private readonly Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>> PackagesByCategory = 190new Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>>(); 192private readonly Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>> BlobsByCategory = 193new Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>>(); 389var category = packagesPerCategory.Key; 547HashSet<TargetFeedConfig> feedConfigsForSymbols = FeedConfigs[TargetFeedContentType.Symbols]; 786var category = packagesPerCategory.Key; 1010var category = blobsPerCategory.Key; 1092if (!Enum.TryParse(category, ignoreCase: true, out TargetFeedContentType categoryKey)) 1120if (!Enum.TryParse(category, ignoreCase: true, out TargetFeedContentType categoryKey))
src\PublishArtifactsInManifestV3.cs (1)
174TargetFeedContentType categoryKey = feedConfig.ContentType;
src\PublishSignedAssets.cs (1)
83TargetFeedConfig targetFeedConfig = new TargetFeedConfig(TargetFeedContentType.Package, feedUrl, FeedType.AzDoNugetFeed, AzureDevOpsPersonalAccessToken);
Microsoft.DotNet.Build.Tasks.Feed.Tests (46)
GeneralTests.cs (6)
31foreach (TargetFeedContentType type in Enum.GetValues(typeof(TargetFeedContentType))) 33if (type == TargetFeedContentType.None) 209new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly) 222new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly) 243new (new[] { TargetFeedContentType.Deb }, dummyFeedUrl, AssetSelection.ShippingOnly)
PublishArtifactsInManifestTests.cs (1)
104TargetFeedConfig config = new TargetFeedConfig(TargetFeedContentType.Package, "testUrl", FeedType.AzDoNugetFeed, "tokenValue");
PublishToSymbolServerTest.cs (4)
51TargetFeedContentType.Symbols, 88TargetFeedContentType.Symbols, 200TargetFeedContentType.Symbols, 221task.FeedConfigs.Add(TargetFeedContentType.Symbols, feedConfigsForSymbols);
SetupTargetFeedConfigV3Tests.cs (35)
42private readonly List<TargetFeedContentType> InstallersAndSymbols = new List<TargetFeedContentType>() { 43TargetFeedContentType.OSX, 44TargetFeedContentType.Deb, 45TargetFeedContentType.Rpm, 46TargetFeedContentType.Node, 47TargetFeedContentType.BinaryLayout, 48TargetFeedContentType.Installer, 49TargetFeedContentType.Maven, 50TargetFeedContentType.VSIX, 51TargetFeedContentType.Badge, 52TargetFeedContentType.Symbols, 53TargetFeedContentType.Other 94TargetFeedContentType.Package, 108TargetFeedContentType.Symbols, 122TargetFeedContentType.Package, 136foreach (var contentType in InstallersAndSymbols) 138if (contentType == TargetFeedContentType.Symbols) 158TargetFeedContentType.Checksum, 205TargetFeedContentType.Package, 218TargetFeedContentType.Package, 232foreach (var contentType in InstallersAndSymbols) 251TargetFeedContentType.Checksum, 268TargetFeedContentType.Symbols, 313TargetFeedContentType.Package, 327TargetFeedContentType.Package, 341foreach (var contentType in InstallersAndSymbols) 360TargetFeedContentType.Checksum, 376TargetFeedContentType.Symbols, 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);