Does anyone know which characters are allowed in a VS project name? Is there a reference somewhere?
+6
A:
- Cannot contain any of the following characters: / ? : & \ * " < > | # %
- Cannot contain unicode characters
- Cannot contain surrogate characters
- Cannot be reserved names including 'CON', 'AUX', 'PRN', 'COM1' or 'LPT2'
- Cannot be '.' or '..'
I obtained this information by trying to create a project with a character I knew would not be accepted. I.e. a character that is not allowed in NTFS file paths. I.e. I used a project with the name | to get the error.
Brian R. Bondy
2009-04-21 16:55:52
+1 Also some characters may be allowed in the project name but may also break when the CLR tries to load an assembly with those characters. It is important to change the assembly name from the project name if your project name is not valid as an assembly name.
Andrew Hare
2009-04-21 17:03:42