将资源文件移动到资源dll [英] Moving form resource files to a resource dll

查看:185
本文介绍了将资源文件移动到资源dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将为各种winforms创建的本地化资源文件移动到资源dll。有没有一个简单的方法来做,不包括手动从每个表单的dll读取每个字符串,就像表单通常处理它一样?

I want to move the localized resource files, created for my various winforms, to a resource dll. Is there an easy way to do it, that don't include manually reading every single string from the dll for each form, just like the forms usually handles it?

推荐答案

我认为这不会那么困难,你只需要创建一个类型类库的新项目,并将你的资源文件移动到该项目中,当你构建该项目时创建dll,然后您只需要将此dll引用到您的实际项目并完成。

I don't think it'll be that difficult, you just have to create a new project of type class library and move your resource file to that project, when you build that project it'll create the dll and then you just need to refer this dll to your actual project and done.

这篇关于将资源文件移动到资源dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆