我的项目中有许多本地化的 RESX 文件:
Messages.resx
Messages.de.resx
Messages.qps-ploc.resx
最后一个是用于测试目的的伪本地化文本资源。我希望将其编译为卫星程序集(即 project/qps-ploc/project.resources.dll)作为本地化的其余部分。但由于某种原因,AssignCulture 任务正在为该资源分配空区域性,并且它没有被编译为结果。
来自 MSBuild 日志的片段:
Task "AssignCulture"
Culture of "de" was assigned to file "Resources\Messages.de.resx".
Culture of "" was assigned to file "Resources\Messages.resx".
Culture of "" was assigned to file "Resources\Messages.qps-ploc.resx".
Done executing task "AssignCulture".
如此处所述,已在注册表中启用伪本地化文化,并
返回new CultureInfo("qps-ploc")
正确的伪文化。
这是AssignCulture 的预期行为还是只是我用错了?