Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I tried to name a project in Visual Studio 2010 Professional, more than 34 characters and I saw an error which I never saw before. It stated me that the project name is too big :confused:
Any ideas why its so?
Posted
Updated 2-Jan-11 1:02am
v2

You might want to look at this[^] thread.
 
Share this answer
 
Comments
Pankaj Nikam 2-Jan-11 7:05am    
Thanks a lot :) I was wondering why it was so...
Abhinav S 2-Jan-11 7:06am    
You're welcome.
Henry Minute 2-Jan-11 7:20am    
Interesting link.
Abhinav S 2-Jan-11 7:22am    
Thanks Henry.
You must have a long path to the projects directory:
There is a maximum file name/path length etc inherent to each OS and VS has to respect that. The exact maximum character length for a filename is calcultated (up to an upper limit) and your solution parent folder path is part of it.
See MSDN how a project max path and solution name length is calculated[^] VS2010 might have a different way of working, but the principle will be the same.
 
Share this answer
 
I think you can leave with the quite a long simple name of the project (if you really need it) if you make full path name shorter. To do this, move your project solution closer to the disk root (I use something like c://myCompany.development/trunk).

Also, don't forget that your assembly name does not have to be the same as project name. You can have short project name and long assembly name or the opposite.

This is good. I'm only curious: why did you hit this limit? Is that because you really need a long name of the project (then, why?) or because you happened to put your development directory too deep into the file structure?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900