Length of project path in Visual Studio
June 11, 2007 | 9:47 amI was trying to create a project in Visual Studio today and was warned that the path was too long. The path was 118 characters long and project/solution name was 24 characters long. I was a bit surprised, since OS (Windows XP) allows for 260 characters. I did some research and found out that Visual Studio counts like this: Path length + 1 (separator) + Solution name length + 1 (separator) + Project name length + 1 (separator) + Project name length + 80 (Reserved space). Project name length is added twice and Visual Studio wants a reserve of 80 characters at the end. In my case I ended up with: 118 + 1 + 24 + 1 + 24 + 1 + 24 + 80 = 273, which is well beyond the limit.










