Skip to content

OutPut the PathTooLong when when longpath is disabled #11731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JaynieBai
Copy link
Member

@JaynieBai JaynieBai commented Apr 15, 2025

Fixes #10201

Context

When build with dotnet sdk 9.0, during evaluation, it can't find the file Program.cs with main function
image

When build with MSBuild.exe, it has the following error
image

Changes Made

Throw the PathTooLongException exception in windows when the file path exceeds the maximum length
Catch the exception when evaluation and processing the msbuild.exe command.

Testing

image

image

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Project file does not exist with LongPaths
1 participant