I have a Silverlight application with resource files containing strings for localization.
Since there will be a huge number of strings, I was looking for a nice way to create identifiers. So I went to this page where it is said:
Do use the dot separator (“.”) to nest identifiers with a clear hierarchy.
For example, names such as Menus.FileMenu.Close.Text and
Menus.FileMenu.Close.Color conform to this guideline.
But when I try to use such identifiers (like Foo.Bar), Visual Studio keeps telling me that the resource name is not a valid identifier… It’s just a warning and doesn’t prevent my application from building but then my resources are not found at runtime.
Of course everything is fine if I change the identifiers for simpler ones like Foo).
What am I doing wrong? What did I miss in the Microsoft guideline?
Any help, hint or suggestion would be appreciated.
From here:
I tried this and it worked.