-
Notifications
You must be signed in to change notification settings - Fork 198
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
dx: warn about long paths disabled #11140
Conversation
@davidwengier, @ryzngard As the original errors already happen during project load-time (f.e.: in VS, the affected project refuses to load), this was a bit tricky to achieve, but I feel this is unobtrusive enough to ease up the overall first-time experience when working with this repo. Only "donwside" of the current approach is, that this check might be carried out for every project within the solution - which might put some additional time on top of overall build-time. This may be somehow refactored in a way, that the imported target only gets imported once, but I didn`t manage to achieve this so far. Curious about your thoughts on this... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues from me.
I'd be very interested in @jaredpar taking a look to make sure we're following the best practices. I know that |
@DustinCampbell fyi: this change basically adopts what roslyn does, but integrates it in a slightly different way. Mostly due to the fact that those nasty |
I totally understand @earloc! That's why I was hoping @jaredpar would take a look, since he manages so much of the infrastructure in Roslyn and Razor. 😄 |
@jaredpar you probably have a ton of other things on your plate. Would appreciate any feedback on this here if you find the time 👌. Also, I'm wondering if this might be packaged into a standalone nuget, which projects would be able to just pull in 🤔. |
Thanks for the contribution @earloc ! |
Summary of the changes
Directory.Targets.props
to centralize import of common targetsNow, when building with
build.cmd
, the followingWarning
is generated:Opening VS will show the warning as well, with clickable link to
docs/contributing/LongPaths.md
:fixes #11139