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
Include all dlerror messages to DllNotFoundException #70964
Conversation
I expect that there are many situations where the If there are situations where the error message returned by |
d1c8d68
to
c57ccb0
Compare
Narrow down the impact by eliminating overridden error string. The root cause of incorrect error message is
In this scenario, the last error message for Another possible patch would be keeping error message for exact libname only. |
If I am reading the code correctly, this will pretty much always erase the |
Since we cannot tell which error message is the best one, should keep all error messages (eliminate the duplicates) and include all of them in the exception? |
|
Could you please make the same change in the managed version at Line 54 in e297470
|
I'd love to make a patch for NativeAot.
This is my nuget.config.
Please help me setting up the test env. |
30dbd35
to
6867726
Compare
NativeAot message is checked by editing
|
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.
LGTM.
@dotnet/interop-contrib Do you have any feedback?
Nope. Seems reasonable to me. @HJLeee Thank you. |
It's my pleasure and happy to participate in dotnet runtime. |
#70963