Skip to content

Handle unsupported paths in ProjectInSolution.AbsolutePath#6272

Closed
benvillalobos wants to merge 3 commits intodotnet:vs16.9from
benvillalobos:fix-solutionproject-absolutepath-16.9
Closed

Handle unsupported paths in ProjectInSolution.AbsolutePath#6272
benvillalobos wants to merge 3 commits intodotnet:vs16.9from
benvillalobos:fix-solutionproject-absolutepath-16.9

Conversation

@benvillalobos
Copy link
Copy Markdown
Member

@benvillalobos benvillalobos commented Mar 16, 2021

Context

Recreating #6238 to merge into 16.9.

Notes

Created by branching off of upstream/vs16.9 and cherry-picking each commit.

Sign off for 16.9.3 is 4/12

/cc: @jeffkl @donovan-ecargo

jeffkl added 3 commits March 16, 2021 13:10
dotnet#5950 introduced a call to `Path.GetFullPath()` to get a path that is normalized.  However, in some cases Visual Studio stores unsupported paths which will cause `Path.GetFullPath()` to throw.

`Path.GetFullPath()` can also throw a `PathTooLongException` which is now handled.

Fixes dotnet#6236
@benvillalobos benvillalobos requested a review from jeffkl March 16, 2021 20:12
@jeffkl
Copy link
Copy Markdown
Contributor

jeffkl commented Mar 16, 2021

Its been a while since I did servicing, but I was wondering if it would be better to cherry-pick the actual commit that went into main?

f137b70

I think that would make it easier to tell what commits are in main and what commits are in this branch? The commits you cherry-picked are from my branch and not the squashed commit that went in. But again, I might not fully know what the best option is either. Here's a draft PR of the cherry-pick from main to vs16.9: #6273

@benvillalobos
Copy link
Copy Markdown
Member Author

@jeffkl I think you're right. The process should have been to merge into vs16.9, then vs16.9 would flow into master, merging the squashed commit. Let's go with your PR (thanks for making that btw).

@Forgind Forgind closed this Mar 16, 2021
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.

3 participants