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

Add partial to the enclosing types when running the ConvertToGeneratedDllImport fixer #65452

Merged
merged 12 commits into from
Mar 8, 2022

Conversation

jkoritzinsky
Copy link
Member

@jkoritzinsky jkoritzinsky commented Feb 16, 2022

This also includes some refactoring to make it easier to write the custom fix all provider that was required.

Fixes #62291

@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Feb 16, 2022
@jkoritzinsky jkoritzinsky added this to the 7.0.0 milestone Feb 16, 2022
@ghost ghost assigned jkoritzinsky Feb 16, 2022
@ghost
Copy link

ghost commented Feb 16, 2022

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

Issue Details

Fixes #62291

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: -

@jkoritzinsky jkoritzinsky changed the title Refactor a little bit to make some future changes easier. Add partial to the enclosing types when running the ConvertToGeneratedDllImport fixer Feb 16, 2022
@jkoritzinsky
Copy link
Member Author

System.IO.Tests failures are in multiple PRs. Tracked in #65791

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32211.407
MinimumVisualStudioVersion = 10.0.40219.1
Copy link
Member

Choose a reason for hiding this comment

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

I assume VS did this? Do we try to keep the .sln files slngen edits only?

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally we try to keep the sln files such that they don't generate diffs when you open them in VS, but that usually depends on slngen generating them perfectly and sometimes it doesn't do it quite right.

@jkoritzinsky jkoritzinsky merged commit 145b677 into dotnet:main Mar 8, 2022
@jkoritzinsky jkoritzinsky deleted the add-partial branch March 8, 2022 01:14
@ghost ghost locked as resolved and limited conversation to collaborators Apr 7, 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.

DllImportGenerator conversion code fix should make the containing types partial
3 participants