[英]Read .resx file names from a referenced assembly
我想从引用的程序集上的文件夹中检索可用的资源文件。 我可以访问程序集并获取如下名称:
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(AppResources));
string[] names = assembly.GetManifestResourceNames();
但这并没有给我提供我需要的名字,包括AppResources.resx,AppResources.en-US.resx等。我怎么能读到这些名字?
非常感谢
您将在GetManifestResourceNames中找到AppResources.resx
NamespaceOfAppResources。 AppResources。 资源
语言特定资源不在主程序集中。
请参阅处理程序集资源: http : //www.codeproject.com/KB/dotnet/Extracting_Embedded_Image.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.