[Bug]: Satellite assemblies with un-predefined cultures are not copied correctly into depended projects #10536
Labels
bug
Cost:M
Work that requires one engineer up to 2 weeks
Localization
Priority:2
Work that is important, but not critical for the release
triaged
Issue Description
Satellite assemblies with un-predefined cultures in a project are not copied correctly into the projects that depends on it.
Steps to Reproduce
Assume that
yue
is not a predefined language in the system.Test.resx
andTest.yue.resx
respectively.Expected Behavior
The satellite assembly for the culture
yue
is correctly copied into Project B and Project C, and also written into their.deps.json
.Actual Behavior
yue
is not copied into Project C at all..deps.json
in both Project B and Project C do not include the satellite assembly for the cultureyue
.Analysis
Suspicious related method:
ReferenceTable.FindSatellites()
msbuild/src/Tasks/AssemblyDependency/ReferenceTable.cs
Line 974 in 4bb8d03
This method cannot find satellite assemblies with unusual cultures because it is still checking the satellite directory name against
CultureInfoCache
only.Related issues and PRs:
(Fixed by Update AssignCulture Task to support existing Culture metadata #10026)
Versions & Configurations
MSBuild version: 17.11.2.32701
The text was updated successfully, but these errors were encountered: