top of page

Visual Studio 2019 Maximum Path Length Error When Creating Projects and Solutions.

Updated: Jun 17, 2023

The Problem

When creating solutions and or projects in Visual Studio 2019 the following error may occur.


Max length error when creating visual studio poject
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


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.
1. Create a project/solution with a very short name like x.

2. Rename project with short name to the correct name.
2. Rename project with short name to the correct name.

3. Project name is set to the name that caused the original error
3. Project name is set to the name that caused the original error

693 views0 comments

Recent Posts

See All
bottom of page