Tooling: Resource generator generating ResourceManager basename incorrectly

Created on 25 May 2016  ·  7Comments  ·  Source: aspnet/Tooling

See https://github.com/aspnet/Localization/issues/245 for conversation and reproducible

TFS Tracked

Most helpful comment

Is there any progress to this? Seven months later in version 1.1 of ASP.NET and this is still happening. It's really annoying to have to keep all resource files in root of our project.

All 7 comments

TFS: 225796
I've added this to our internal TFS, we will reply back here soon.

I had the same problem. My website default namespace is different to the web project name. IStringLocalizer won't find resource file in Resources/Controllers.LoginController.zh.resx.

The workaround is to add the namespace to the resource file name, e.g. VP.Web.Controllers.LoginController.zh.resx. Same for viewmodels resource file, add the namespace to the file name like VP.Web.ViewModels.UserLoginVM.zh.resx and it will work.

Looking forward to the fix.

Is there any progress to this? Seven months later in version 1.1 of ASP.NET and this is still happening. It's really annoying to have to keep all resource files in root of our project.

This issue is still happening. Any update?

Any updates on this? Please.

Any updates? Still happening

This should be fixed, let me know if you still run into issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

owidat picture owidat  ·  5Comments

kevinharing picture kevinharing  ·  7Comments

TheRealPiotrP picture TheRealPiotrP  ·  8Comments

danroth27 picture danroth27  ·  6Comments

Bartmax picture Bartmax  ·  5Comments