Search code examples
c#asp.net-mvcculturecorruptresource-file

Specify Culture Name for Resource File in Asp.NET MVC


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?


Solution

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

    PublicResXFileCodeGenerator 
    

    instead of

    GlobalResourceProxyGenerator