Visual Studio 2019 Maximum Path Length Error When Creating Projects and Solutions.
When creating solutions and or projects in Visual Studio 2019 the following error may occur.
Max length error when creating visual studio poject
“The length of the full path for the solution, project or item you are creating exceeds the maximum length allowed by the system. You must reduce the length of the name or the location”
In short this is poor by Microsoft, the project name is not even that long.
The solution is simple. Create your project with a short name. After it has been created rename the project to the desired name. Easy 😊. See the screen shots below.
1. Create a project/solution with a very short name like x.
2. Rename project with short name to the correct name.
3. Project name is set to the name that caused the original error