Skip to content
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

Prevent FileNotFoundException #65402

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

davidwengier
Copy link
Member

@davidwengier davidwengier commented Nov 13, 2022

Fixes AB#1675670

@davidwengier davidwengier requested a review from a team as a code owner November 13, 2022 21:26
@davidwengier davidwengier merged commit 7a9b666 into dotnet:main Nov 14, 2022
@davidwengier davidwengier deleted the PreventFileNotFound branch November 14, 2022 03:45
@ghost ghost added this to the Next milestone Nov 14, 2022
return result;
}

if (File.Exists(reference.Display))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need a file path you can cast this the reference to PortableExecutableReference and then grab the file path property here; there's no guarantee that the display string here is really usable like this.

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

Successfully merging this pull request may close these issues.

5 participants