-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[browser] Expect fingerprint on assemblies promoted from build #120442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
There was a problem hiding this comment.
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 updates the WebAssembly publish task to handle fingerprinted assembly assets correctly when the .NET SDK fingerprints static web assets. The changes ensure that assembly matching works properly when assemblies have fingerprinted names (e.g., System.Private.Corelib.FP.wasm
instead of System.Private.Corelib.wasm
).
Key changes:
- Adds logic to extract non-fingerprinted asset item specifications for proper assembly matching
- Updates assembly update logic to use original (non-fingerprinted) names when
FingerprintAssets
is enabled - Ensures satellite assemblies are handled consistently with the fingerprinting approach
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/ComputeWasmPublishAssets.cs
Outdated
Show resolved
Hide resolved
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/ComputeWasmPublishAssets.cs
Outdated
Show resolved
Hide resolved
/backport to release/10.0 |
Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18356980923 |
In dotnet/sdk#50949 we changed the identity of StaticWebAsset to contain fingerprint (
System.Private.Corelib.wasm
->System.Private.Corelib.FP.wasm
). If we do relink, these assemblies from build are replaced by assemblies from relink. If we don't, we need to accommodate for the fingerprint when matching assets from build.Contributes to #120393