The name of the resource '<string>' cannot be used as a valid identifier

The name of the resource '<string>' cannot be used as a valid identifier, because it contains one or more invalid characters: '<string>'. Please remove or replace those characters and try again.

You did not specify a resource name that can be converted to a valid identifier when strongly typed code generation is turned on for the resource file. For example, a name including "%" would cause this error.

The first <string> is the resource name that you specified.

The second <string> is the invalid character or characters found.

To correct this error

  • Rename the resource by using a valid identifier and try importing again.

Community Additions

Show: