jj <jo**************@gmail.com> wrote:
Thank you for the quick response,
What I have is an xslt file in the source directory of my project with
a build action of "Embedded Resource". When I make a call to
Assembly.GetManifestResourceStream() I need the assembly and the full
name. This full name is prefixed by the default namespace that is
defined in the properties. I would like to avoid having to use the
assembly path, the default namespace, and the class name to get to the
resource and instead get the default namespace from the Assembly
object. I can do this if I make sure that the default namespace is the
same as the assembly name, as it is by default, but since this is for a
framework for other developers to use, I would like to avoid this
requirement.
The "default namespace" is purely a Visual Studio construct. As Michael
suggests, you could find all the names of resources and pick the one
you're after. If you only include one XSLT file per assembly, that
should be really easy. To be honest, it would be best if other
developers specified which resource name to use explicitly, IMO.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too