dotnet / format

Home for the dotnet-format command
MIT License
1.94k stars 172 forks source link

format should handle paths longer than MAX_PATH #1067

Open frendguo opened 3 years ago

frendguo commented 3 years ago

In gitlab-ci, the file path length in the project easily exceeded the limit of 260, which directly caused me to be unable to use this tool in gitlab-ci. Is it possible to fix this problem?

reference: https://github.com/dotnet/msbuild/issues/53

JoeRobich commented 3 years ago

@frendguo What OS is your build running? I believe with windows you would still have to enable long file paths within Windows first (https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation#enable-long-paths-in-windows-10-version-1607-and-later).

michael-hawker commented 2 years ago

@JoeRobich we're seeing this in the GitHub actions CI which has long paths enabled already still, so pretty confused: https://github.com/CommunityToolkit/Labs-Windows/pull/255

JoeRobich commented 2 years ago

@michael-hawker Looks like your failure is part of running msbuild not dotnet-format. If I have that wrong, please link me to the failing action which is running dotnet-format.