Skip to content

Load framework data from dump pack manifest#162

Open
syrle-foronda wants to merge 2 commits into
mainfrom
fix-framework-usage-not-reporting-net10-and-net11
Open

Load framework data from dump pack manifest#162
syrle-foronda wants to merge 2 commits into
mainfrom
fix-framework-usage-not-reporting-net10-and-net11

Conversation

@syrle-foronda

Copy link
Copy Markdown
Member

This pull request introduces significant enhancements to the DumpPacks tool, focusing on structured JSON output, improved diagnostics, and CI pipeline integration. The changes replace previous console output with a manifest-based approach, capturing both built-in and workload packs, their versions, and any encountered errors or warnings. Additionally, the Azure pipeline is updated to build and run the new DumpPacks tool using .NET 11 SDK.

Key changes:

Manifest-based JSON output and models

  • Replaced ad-hoc console output in Program.cs with a structured DumpPackManifest object, aggregating built-in packs, workload packs, platform versions, and errors, and outputting the result as formatted JSON (SetJsonString) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10].

Centralized diagnostics reporting

  • Introduced DumpPackDiagnostics for collecting errors and warnings throughout the process, replacing direct Console.WriteLine calls in multiple files; all collected messages are included in the final manifest output [1] [2] [3] [4] [5] [6] [7].

Azure pipeline integration

  • Updated the gen-catalog.yml pipeline to build and publish the DumpPacks tool and include its source path in triggers [1] [2].
  • Modified the pipeline steps to install .NET 11 SDK and run DumpPacks, capturing its output as JSON [1] [2] [3].

Minor improvements

  • Added missing using System.Text.Json; in FrameworkDefinition.All.cs to support JSON serialization.

These changes make DumpPacks more robust, testable, and suitable for automation, while also improving error visibility and future extensibility.Teach DumpPacks to emit a structured JSON manifest for built-in packs, workload packs, supported platform versions, and collected warnings/errors instead of only writing console output. Update framework generation to read that manifest, append framework definitions for newer TFMs, and infer pack/platform metadata from the dumped SDK and workload data.

Teach DumpPacks to emit a structured JSON manifest for built-in packs, workload packs, supported platform versions, and collected warnings/errors instead of only writing console output. Update framework generation to read that manifest, append framework definitions for newer TFMs, and infer pack/platform metadata from the dumped SDK and workload data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant