Skip to content

[Localization 3.1] Failed to resolve string if RootNamespace is different from AssemblyName #21590

@jeremyVignelles

Description

@jeremyVignelles

On .NET core 3.1, if the RootNamespace is different from the AssemblyName, the resources fails to resolve.
Related to : #10639

Discussion continued from : dotnet/extensions#2081

@hishamco asked me to file a new bug report, so here it is:

Here is a repro project: https://github.com/jeremyVignelles/repro-localization
The relevant line is here : https://github.com/jeremyVignelles/repro-localization/blob/5f0fc80ac58a6321c78f4ce0e743635809f20889/TestLocalization/Program.cs#L14 . If I use the ResourceManagerStringLocalizerFactory from 3.1, it doesn't work as expected.

Metadata

Metadata

Labels

area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesinvestigate

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions