Visual C++ - 如何在名称中使用带点的 resx:texts.en-US.resx

Visual C++ - How to use resx with dot in name: texts.en-US.resx

TLDR

texts_en-US.resx --> texts_en-US.resources   <- included in dll
texts.en-US.resx --> texts.en-US.resources   <- not included in dll

我的 C++ 项目中有一个名为 texts.en-US.resx 的嵌入式 resx。在构建时,此文件被正确编译为 texts.en-US.resources,但它未包含在 dll 中。如果我将它命名为 texts_en-US.resx 它被正确包含。 如何在 dll 中包含 texts.en-US.resources(文件名中有一个点)?

更多信息
我想使用需要这个点分文件名的 ResXResourceManager 来在一行中显示所有语言。或者是否可以将其配置为识别下划线,例如 texts_en-US.resx?我没找到。

谢谢。

我的解决方案是调整 ResXResourceManager 以识别像 texts_en-US.resx 这样的文件:ResXResourceManager with RegEx_based_file_detection