Skip to content

Commit cde6a70

Browse files
authored
add xml files for system.formats.cbor (#352)
1 parent e063839 commit cde6a70

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PackageIndexer/Program.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal static class Program
2727
private static async Task<int> Main(string[] args)
2828
{
2929
#if DEBUG
30-
args = [@"c:\users\gewarren\desktop\Package Index 0509"];
30+
args = [@"c:\users\gewarren\desktop\Package Index 0521", "preview"];
3131
#endif
3232

3333
if ((args.Length == 0) || (args.Length > 2))
@@ -95,7 +95,7 @@ private static void GenerateCSVFiles(string indexPackagesPath, string csvPath)
9595
// Example: pac01,[tfm=net9.0;includeXml=false]Microsoft.Extensions.Caching.Abstractions,9.0.0-preview.2.24128.5
9696
// Generate a CSV file from each dictionary
9797

98-
Dictionary<string, IList<CsvEntry>> csvDictionary = [];
98+
Dictionary<string, IList<CsvEntry>> csvDictionary = [];
9999
Dictionary<string, int> packageCounter = []; // Used for "pac" number in CSV file.
100100
foreach (string moniker in s_tfmToOpsMoniker.Values)
101101
{
@@ -202,6 +202,10 @@ FrameworkEntry tfm
202202
StringComparison.InvariantCultureIgnoreCase
203203
);
204204

205+
// Special case for System.Formats.Cbor - include XML file.
206+
if (string.Equals(packageEntry.Name, "System.Formats.Cbor", StringComparison.InvariantCultureIgnoreCase))
207+
includeXml = true;
208+
205209
string squareBrackets = $"[tfm={tfm.FrameworkName};includeXml={includeXml}]";
206210

207211
// Special case for System.ServiceModel.Primitives - use reference assembly.

0 commit comments

Comments
 (0)