语言设置为“默认”但我没有看到resource.dll?
我刚刚将其中一种表单设置为 Localization: True 并将语言保留为“Default”。
我检查了 resx,果然它包含了我的表单的所有字符串。
所以我运行该应用程序,我希望在我的 Debug 目录中找到卫星资源 DLL,但它不在那里。
所以这让我很惊讶.. 难道 DEFAULT 语言没有编译为卫星 DLL 吗?
我想将语言(包括默认语言)作为附属程序集分发。
I have just set one of my forms to Localization: True and left the language as "Default".
I checked the resx and sure enough it contains all the strings for my form.
So i run the application, and i was hoping to find the satellite resource DLL in my Debug directory but its NOT there.
So this left me surprised.. Is it that the DEFAULT language is not compiled as a satellite DLL?
I would like to distribute languages (including the DEFAULT) as satellite assemblies.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是对的 - 默认资源直接编译到程序集本身中。一旦您更改了表单的
Language
属性并修改了资源,那么在构建之后就会为此语言创建一个附属程序集。这样做的原因是,如果表单未本地化为用户的 UI 语言,则始终会使用后备语言。
You are correct - the default resources are compiled directly into the assembly itself. Once you change the
Language
property of the Form and modify the resources, then after building a satellite assembly will be created for this language.The reason for this is so that there will always be a fallback language to use, if the Form isn't localized to the user's UI language.