This is what the ASP.NET documentation says about resource files.
It does not specifically talk about code constructor files generated on the fly, but if you carefully read the highlighted in bold, they essentially say that you need a base file without the specified language, and given this, it makes sense that only this file will include auto generated code.
" When you create resource files, you start by creating a base .resx file. For each language you want to support, create a new file with the same name. Language or language and culture (culture name). For a list of culture names, see the class CultureInfo For example, you can create the following files:
β’ WebResources.resx
Base Resource File. This is the default resource file (backup).
β’ WebResources.es.resx
Resource file for spanish.
β’ WebResources.es-mx.resx
Resource File for Spanish (Mexico).
β’ WebResources.de.resx
Resource file for the German language.
I had never noticed this before, but when I went to check on my old projects, I saw that they all have a base file, and then language ones. So I just fixed it to follow this convention, and now it works.
mare
source share