How to resolve this "Resource name is not a valid identifier" compiler warning
c#, compiler-warnings, resources
Solution
Strongly typed means that a variable, field, or property is of a specific type instead of just `Object`.
public class User
{
public String FirstName { get; set; } // Strongly typed
public Object LastName { get; set; } // Weakly typed
}
If you use strongly typed resources, code is generated with strongly typed properties for all your resources. In this case the resource name is used as the property name, hence it must be a valid C# property name. Your example `MB_ArchiveRestore.cs_11` contains a dot and is in consequence not a valid property name. The code generator will replace the dot with an underscore to make the name valid and gives you the described warning to inform you about that.
Problem
I've got a bunch of Warnings in a Visual Studio 2005 project, most of them are warning me that a resource name is not a valid identifier. example: ``` The resource name 'MB_ArchiveRestore.cs_11' is not a valid identifier. ``` MSDN online help indicates that the resource name needs to be strongly typed, and not contain spaces. What does strongly typed exactly mean?