I noticed a peculiar problem when I try to include a file as an EmbeddedResource
in my project.
If the file contains a culture name substring (e.g. test.en.json
), the C# compiler will completely ignore the EmbeddedResource
directive from my project file and instead generate an external localization file (a satelite assembly, I believe), named MyProject.Resources.dll
and output it in a subfolder called en
.
This is most definitely not what I want! How can I persuade the compiler to just do the usual thing it would normally do, if the file name was different (e.g. test.json
)?
Simply renaming my resource files to avoid such coincidences is not something I'd be happy with, because it has other side effects.
UPDATE
Maybe I wasn't clear enough... The reason I don't want any of this magic is because I'm going for a single executable application. Additional DLLs in a subfolder, even if automagically loaded, defeat my intended purpose. I just want the normal (i.e. no localization-related helpfulness) embedded resource behavior.