Embedded resources in assembly containing culture name in filename will not load
I'm trying to embed some email templates in a class library. This works fine, until I use a filename containing a culture-name with the following notation: templatename.nl-NL.cshtml The resource does not seem to be available. Example code: namespace ManifestResources { class Program { static void Main(string[] args) { var assembly = Assembly.GetExecutingAssembly(); // Works fine var mailTemplate = assembly.GetManifestResourceStream("ManifestResources.mailtemplate.cshtml"); // Not ok, localized mail template is null var localizedMailTemplate = assembly.GetManifestResourceStream(