Reputation: 6121
What I'm trying to do: include some files along with the executable to extract them later.
I have two projects, both with a Resource1.resx file (and some resources included from disk).
File.WriteAllBytes(path,
Resource1.Image);
to dump the resource to disk. Resource1
is does not exist.I've done this before but all I can find is information about localizations (?) when I search MSDN for how to work with Resources.
Edit: if it makes a difference, I'm using .NET 2.0 (yeah I know)
Upvotes: 0
Views: 107
Reputation: 6121
If you rename your project using the Solution Browser, it will not change all of the relevant instances of that name.
So by extension, calling ResxItemName
won't do you any good because it's actually OriginalNameSpace.ResxItemName
.
Upvotes: 0
Reputation: 1571
Please check the build action of the resx file. It should be set to compile (from the top of my head) to make it a compiled resource.
Upvotes: 1