Resource Filenames are Language-Sensitive

The name of a resource is formed by the assembly's default namespace (C#) or root namespace (Visual Basic), followed by the filename and extension (without the path). However, if the resource file is stored in a project's folder, the rule for forming the resource name depends on the language in use. The C# compiler generates a resource name that includes the folder's name, whereas the Visual Basic compiler ignores the folder and generates the name as if the resource were stored in the project's root folder. For example, if you move the Strings.resx file to a project folder named TextFiles, the Visual Basic code will continue to work, whereas you should edit the C# code like this:

// [C#]
string resFile =