Skip to content

Use managed FileCatalog task for .js catalog generation - #7759

Merged
akoeplinger merged 4 commits into
mainfrom
dev/akoeplinger/managed-js-catalog
Jul 16, 2026
Merged

akoeplinger merged 4 commits into
mainfrom
dev/akoeplinger/managed-js-catalog

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Replace the Windows-only makecat.exe/generate-catalog.ps1 approach with the cross-platform managed GenerateFileCatalog task from Arcade.

  • emsdk: generate emscripten-js.cat via GenerateFileCatalog on all platforms; drop generate-catalog.ps1, swap Templating dependency for FileCatalog.
  • runtime: generate runtime-js.cat for wasm runtime packs, hooked after _GenerateFrameworkList and packaged under data/; add FileCatalog dependency and sign the .cat explicitly by name.

Replace the Windows-only makecat.exe/generate-catalog.ps1 approach with the
cross-platform managed GenerateFileCatalog task from Arcade.

- emsdk: generate emscripten-js.cat via GenerateFileCatalog on all platforms;
  drop generate-catalog.ps1, swap Templating dependency for FileCatalog.
- runtime: generate runtime-js.cat for wasm runtime packs, hooked after
  _GenerateFrameworkList and packaged under data/; add FileCatalog dependency
  and sign the .cat explicitly by name.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d4e0f156-2249-4165-96fb-c348b532a48b
Copilot AI review requested due to automatic review settings July 15, 2026 16:51
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the Windows-only makecat.exe/PowerShell-based catalog generation with the cross-platform managed GenerateFileCatalog MSBuild task, so .cat files can be produced consistently on all build agents and then signed via Arcade signing.

Changes:

  • Runtime: add a new GenerateJsFileCatalog target to generate and package runtime-js.cat for runtime packs; add FileCatalog task dependency and sign runtime-js.cat.
  • Emsdk: generate emscripten-js.cat via GenerateFileCatalog on all platforms; remove eng/generate-catalog.ps1 and swap the tool dependency from Templating to FileCatalog; explicitly sign emscripten-js.cat.
  • Versioning: introduce FileCatalog dependency entries/versions for both runtime and emsdk.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.targets Adds target to generate/package runtime-js.cat for .js files in runtime packs.
src/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props Adds Microsoft.DotNet.Build.Tasks.FileCatalog package reference for runtime pack build.
src/runtime/eng/Version.Details.xml Adds runtime dependency entry for Microsoft.DotNet.Build.Tasks.FileCatalog.
src/runtime/eng/Version.Details.props Adds runtime version properties for FileCatalog tasks package.
src/runtime/eng/Signing.props Updates signing rules: .js unsigned, runtime-js.cat explicitly signed.
src/emsdk/eng/Version.Details.xml Replaces Templating dependency entry with FileCatalog.
src/emsdk/eng/Version.Details.props Replaces Templating version properties with FileCatalog equivalents.
src/emsdk/eng/Tools.props Swaps implicit build task package reference from Templating to FileCatalog.
src/emsdk/eng/Signing.props Removes generic .cat signing and explicitly signs emscripten-js.cat.
src/emsdk/eng/generate-catalog.ps1 Deletes Windows SDK (makecat.exe) PowerShell-based catalog generation script.
src/emsdk/eng/emsdk.proj Updates catalog generation target to use managed GenerateFileCatalog cross-platform.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- emsdk: re-add explicit Import of the FileCatalog UsingTask. eng/Tools.props
  is a restore-only manifest, and the Traversal SDK does not auto-import package
  build assets, so GenerateFileCatalog was not found. Import it via NuGetPackageRoot,
  matching the existing pkgproj convention.
- runtime: write the catalog to $(IntermediateOutputPath) so it is scoped per
  build configuration, and delete/skip a stale catalog when a pack has no .js so
  it can't be inadvertently packaged.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d4e0f156-2249-4165-96fb-c348b532a48b
Comment thread src/emsdk/eng/emsdk.proj Resolved
@akoeplinger
akoeplinger force-pushed the dev/akoeplinger/managed-js-catalog branch from 129432c to daea657 Compare July 16, 2026 10:28
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.

3 participants