Repository navigation
Use managed FileCatalog task for .js catalog generation - #7759
Merged
Merged
Conversation
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
|
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. |
Contributor
There was a problem hiding this comment.
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
GenerateJsFileCatalogtarget to generate and packageruntime-js.catfor runtime packs; add FileCatalog task dependency and signruntime-js.cat. - Emsdk: generate
emscripten-js.catviaGenerateFileCatalogon all platforms; removeeng/generate-catalog.ps1and swap the tool dependency from Templating to FileCatalog; explicitly signemscripten-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
ViktorHofer
reviewed
Jul 16, 2026
akoeplinger
force-pushed
the
dev/akoeplinger/managed-js-catalog
branch
from
July 16, 2026 10:28
129432c to
daea657
Compare
ViktorHofer
approved these changes
Jul 16, 2026
akoeplinger
enabled auto-merge (squash)
July 16, 2026 11:13
This was referenced Jul 16, 2026
This was referenced Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the Windows-only makecat.exe/generate-catalog.ps1 approach with the cross-platform managed GenerateFileCatalog task from Arcade.