Specify Culture Name for Resource File in Asp.NET MVC

727 Views Asked by At

when i try to create a resource file named Labels.resx it works fine and a Labels.designer.cs being created well, but when i try to create another resource file for a specific locale like Labels.en-US.resx the resource file gets corrupted and the designer will be empty!

[Edit from comments]: The resource generator specified for the .resx file is GlobalResourceProxyGenerator

whats wrong with it? am I doing anything wrong?

1

There are 1 best solutions below

0
Alexei - check Codidact On BEST ANSWER

Based on comments, the solution is to use another resource generator:

PublicResXFileCodeGenerator 

instead of

GlobalResourceProxyGenerator