KevinBengo
asked on
How do you retrieve the names of embedded resources
Hello
(Language C#, Visual Studio 2005)
This is driving me nuts because it is something I've done before but can't recreate. I'm trying to:
1. Get the full path to where the embedded resources are.
2. Get the names of the embedded resource files.
using code-
System.Reflection.Assembly thisExe =
System.Reflection.Assembly .GetExecut ingAssembl y();
string[] resources = thisExe.GetManifestResourc eNames();
Almost gets me the names of everything including:
[programname].Properties.R esources.r esources
But I can't retrieve the file names that are contained within the ".resources"
Thanks a lot (and please don't forget about question 1)
(Language C#, Visual Studio 2005)
This is driving me nuts because it is something I've done before but can't recreate. I'm trying to:
1. Get the full path to where the embedded resources are.
2. Get the names of the embedded resource files.
using code-
System.Reflection.Assembly
System.Reflection.Assembly
string[] resources = thisExe.GetManifestResourc
Almost gets me the names of everything including:
[programname].Properties.R
But I can't retrieve the file names that are contained within the ".resources"
Thanks a lot (and please don't forget about question 1)
If you have the full resource name, you might be able to use Assembly.GetManifestResour ceStream, and use an appropriate stream reader to get the contents.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. It was helpful