Describe the Bug
When declaring resources with same base name but different on suffix although the static string member generated, an extra partial class declaration is produced with same name, raising CS0102 error.
For example, the following declaration on resx file:
Produces:
- A static property accessible calling
Strings.MSG.InstallationFailed (static property)
- A nested partial class called
InstallationFailed accessible calling Strings.MSG.InstallationFailed (static partial class)
This fires the CS012 compiler error since both declarations share the same base name.
Steps to Reproduce
- Create a Strings.resx file on project
- Create a resource with a common name
SomeResource
- Create another resource with same base name and an extra suffix
SomeResource_Alt


Describe the Bug
When declaring resources with same base name but different on suffix although the static string member generated, an extra partial class declaration is produced with same name, raising CS0102 error.
For example, the following declaration on resx file:
Produces:
Strings.MSG.InstallationFailed(static property)InstallationFailedaccessible callingStrings.MSG.InstallationFailed(static partial class)This fires the CS012 compiler error since both declarations share the same base name.
Steps to Reproduce
SomeResourceSomeResource_Alt