"DirectoryNotFoundException: Could not find a part of the path" thrown when creating a new C# Script in a path longer than 260 characters
Unity: Scripting
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
How to reproduce:
Create a new Unity project
Create a path longer than 260 characters in the Assets folder
Create a new C# Script in that folder
Expected results: The C# Script is created
Actual results: "DirectoryNotFoundException: Could not find a part of the path" thrown in the Console window