-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[browser] Check unique relative path for assemblies #123341
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
Removed duplicate file name check for asset candidates.
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 fixes a regression in the WebAssembly build process where satellite assemblies from NuGet packages containing multiple cultures were incorrectly flagged as duplicate files. The fix ensures that satellite assemblies, which are deployed to culture-specific subdirectories, bypass the unique filename check that only applies to assemblies in the main framework folder.
Changes:
- Modified
ComputeWasmBuildAssets.csto skip the unique filename check for satellite assemblies with culture metadata - Added comprehensive test coverage including a new French localization and a test specifically for package-sourced satellite assemblies
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/ComputeWasmBuildAssets.cs |
Adds early return for satellite assemblies to bypass unique filename validation |
src/mono/wasm/testassets/WasmBasicTestApp/ResourceLibrary/words.fr-FR.resx |
Adds French localization resource file for testing multiple satellite assemblies |
src/mono/wasm/testassets/WasmBasicTestApp/ResourceLibrary/ResourceLibrary.csproj |
Conditionally references Microsoft.CodeAnalysis.CSharp package to test satellite assemblies from packages |
src/mono/wasm/testassets/WasmBasicTestApp/ResourceLibrary/ResourceAccessor.cs |
Adds French culture test output |
src/mono/wasm/testassets/WasmBasicTestApp/App/SatelliteAssembliesTest.cs |
Updates test to load fr-FR satellite assembly |
src/mono/wasm/Wasm.Build.Tests/SatelliteLoadingTests.cs |
Updates existing tests for French locale and adds new test for package-sourced satellite assemblies |



Change unique name check in
ComputeWasmBuildAssetsfrom file name to computed relative path in wwwroot. Satellite assemblies go each to a sub folder based on culture.Extend tests to verify behavior for referenced project and PackageReference with multiple satellite assemblies.
Fixes #123305