In Visual Studio 2010, I came across strange behavior.
When using embedded resources (files added to my C # project and for which the Build Action property is set to Embedded Resource), the files are included in the output assembly as binary data. The list of resources is simple:
class Program
{
static void Main(string[] args)
{
string[] names = typeof (Program).Assembly.GetManifestResourceNames ();
foreach (var name in names)
{
System.Console.Out.WriteLine (name);
}
}
}
However, if the file name of the embedded resource ends in No.xxx(the extension does not matter), the file does not appear in the list. I cannot understand why Visual Studio 2010 did not include such a file. What did I miss?
Note. If I rename the embedded resource file in the solution explorer to another, then everything will work as expected.