You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have a short section or paragraph describing what the RootNamespaceAttribute is, when you would use it, and how to include it in your project.
Proposed Contents
When the root namespace of an assembly is different than the assembly name localization does not work by default due to the way resources are searched for within the assembly, and the fact that RootNamespace is a build-time value which is not available to the executing process. If your RootNamespace is different from your AssemblyName then you should include the following in your AssemblyInfo.cs (with values replaced with your actual values):
using System.Reflection;
using Microsoft.Extensions.Localization;
[assembly: ResourceLocation("ResourceFolderName")]
[assembly: RootNamespace("YourRootNamespace")]
This should allow for successful resolution of resx files.
Activity