【问题标题】:Read .resx file names from a referenced assembly从引用的程序集中读取 .resx 文件名
【发布时间】:2012-02-04 02:37:07
【问题描述】:

我想从引用程序集的文件夹中检索可用的资源文件。我可以访问程序集并获得如下名称:

System.Reflection.Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(AppResources));
string[] names = assembly.GetManifestResourceNames();

但这并没有给出我需要的名称,即 AppResources.resx、AppResources.en-US.resx 等。我该如何阅读这些名称?

非常感谢

【问题讨论】:

    标签: c# .net assemblies embedded-resource resx


    【解决方案1】:

    您将在 GetManifestResourceNames 中找到 AppResources.resx

    NamespaceOfAppResources 。应用资源。资源

    语言特定的资源不在主程序集中。

    请参阅处理程序集资源: http://www.codeproject.com/KB/dotnet/Extracting_Embedded_Image.aspx

    【讨论】:

      猜你喜欢
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多