如何利用全球资源在库 [英] How to use Global Resources in a Library
本文介绍了如何利用全球资源在库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用的是环球资源的功能,不仅能集中我所有的输出字符串,但使用本地化(魔女的时间近90%)。
I use the Global Resources feature, not only to centralize all my output strings but to make it easy when using Localization (witch is almost 90% of the time).
但I S $ P $垫出我的项目进入,不仅ASP.NET网站,但有2个图书馆项目,以及
But I spread out my project into, not only the ASP.NET website, but with 2 Library projects as well.
我的问题是:
我如何使用 ASP.NET全球资源文件这些库项目?
How can I use the ASP.NET Global Resource file in those Library projects?
因为如果我这样做
Resources.MyFilename.MyResourceStringName
在图书馆没有 MyFileName的
类的知识
我应该在这个情况下怎么办?
What should I do in this cases?
推荐答案
您将不得不使用ResourceManager类来完成这一任务。
Your going to have to use the ResourceManager class to accomplish this.
这篇关于如何利用全球资源在库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!