如何将 .resource 文件包含到程序集中?
我有几个已编译的资源文件(myProg.en_US.resource、myProg.de_DE.resource 等),当前在运行时使用 ResourceManager.CreateFileBasedResourceManager() 加载。 我想修改它并将资源嵌入到程序集中。这怎么能做到呢? MSDN 仅提及 .resx 文件。
I have a couple of compiled resource files (myProg.en_US.resource, myProg.de_DE.resource and so on) which are currently loaded during runtime using ResourceManager.CreateFileBasedResourceManager().
I want to modify that and embed the resources into the assembly. How can this be done? MSDN only speaks of .resx-files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
单击解决方案资源管理器中的文件,然后找到其属性。有一个项目称为构建操作。您可以选择“嵌入资源”选项
Click the file in solution explorer, then find it's properties. there is an item called build action. You can choose the option "embedded resource"