Embedded Resources

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Is it possible to embed resources .net in Web Control Library projects?
So far my attempts have all failed. Is there something specific about
that type of project that prevents the use of embedded resources?
 
As far as I know, Web Control Library assemblies are no different than other
assemblies. The most common mistake I make is forgetting to set the build
action of the resource to "Embedded".
 
I figured it out. It turns out that the embedded resource isn't
consistently named "myresource.xxx." Sometimes it is named
"myassembly.myresource.xxx." I guess my next question is, Why does this
happen? How do I guarantee that my resources are named in a certain way?
 
Generally they pick up the "Default Namespace" defined in the project
properties. You can use a tool such as ILDASM to open your compiled exe/dll
and look at the manifest which will list all the embedded resources.

Peter
 
Ahh. So if I remove the Default Namespace setting from the solution's
properties, then my resource will be named "myresource.xxx." That makes
sense.
 
Back
Top