[C#] 'Could not find a part of the path...' Error When Publishing a Project

발행일: Feb, 2025
조회수: 0
단어수: 95

The main cause is that the file path is too long. Therefore, you can reduce the length of the path name by shortening the project folder name and placing it in a higher-level folder. However, if you inevitably need to place it in a folder with a long name and deep level, there is a way to change the Windows Registry.

Registry Editor Image

Go to the registry path below

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Set LongPathsEnabled to 1 to solve the problem.

If the property does not exist, create a new DWORD type and set the value to 1. (No reboot required)

태그#C##file path#Windows Registry#LongPathsEnabled

JUNA BLOG VISITORS

오늘0
Total0