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

Remove ExactSpelling from GeneratedDllImport #65343

Merged
merged 9 commits into from
Feb 19, 2022

Conversation

jkoritzinsky
Copy link
Member

The new behavior will be equivalent to ExactSpelling=true.

This PR also updates the "convert to GeneratedDllImport" code fix provider to provide code fixes that include the suffixes for the entry-points that were previously checked by the DllImport implementation in the runtime, so the user can select which one they were using previously (unsuffixed or suffixed).

Opening as a draft now as I had to update the runtime P/Invokes to not rely on ExactSpelling=false behavior and I want to make sure I didn't miss anything.

… previously probed entry-point suffix when ExactSpelling is false.
@ghost
Copy link

ghost commented Feb 15, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

The new behavior will be equivalent to ExactSpelling=true.

This PR also updates the "convert to GeneratedDllImport" code fix provider to provide code fixes that include the suffixes for the entry-points that were previously checked by the DllImport implementation in the runtime, so the user can select which one they were using previously (unsuffixed or suffixed).

Opening as a draft now as I had to update the runtime P/Invokes to not rely on ExactSpelling=false behavior and I want to make sure I didn't miss anything.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: 7.0.0

@jkoritzinsky jkoritzinsky added the source-generator Indicates an issue with a source generator feature label Feb 15, 2022
@jkoritzinsky jkoritzinsky marked this pull request as ready for review February 16, 2022 17:08
@jkoritzinsky
Copy link
Member Author

All of the errors here are due to Helix instability, so this is ready for review.

Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

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

I may have missed it, did we update our design docs with this too?

Co-authored-by: Elinor Fung <elfung@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants