By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,996 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,996 IT Pros & Developers. It's quick & easy.

Embedded resource file naming

P: n/a
If I embed a resource with filename "test_cs.xslt" in my c# project,
Assembly.GetExecutingAssembly.GetManifestResourceN ames works as expected.

If I change the filename to "test.cs.xslt" I get 0 items.

Is there a good reason for this behaviour or is it a bug?
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
in my opinion it depends on how vs embeds the resources.
take a look at your exe with ildasm.
first compile with test_cs.xslt and watch it.
then with test.cs.xslt.
with _ i think the resource is embedded as a local resource.

test_cs should be embedded as projectname.test_cs.resources
test.cs should be embedded as projectname.test.cs.resources

for vs these are two different "namespaces"

hope this helps. not sure, but i think so

greetings

richlm schrieb:
If I embed a resource with filename "test_cs.xslt" in my c# project,
Assembly.GetExecutingAssembly.GetManifestResourceN ames works as expected.

If I change the filename to "test.cs.xslt" I get 0 items.

Is there a good reason for this behaviour or is it a bug?

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.