-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Convert all possible DllImport
s to LibraryImport
for .NET 7+
#41573
Convert all possible DllImport
s to LibraryImport
for .NET 7+
#41573
Conversation
Sigh. Looks like we need some source generator feature work here. |
That's a good thing! 😄 |
b6000f8
to
a544b08
Compare
to the signature relying on CLR export probing.
/azp run aspnetcore-ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run aspnetcore-quarantined-pr |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run aspnetcore-components-e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
@AaronRobinsonMSFT please don't rerun until dotnet/arcade#9490 is resolved. We're down and retrying won't help, sorry. |
/azp run aspnetcore-ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run aspnetcore-quarantined-pr |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run aspnetcore-components-e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
All the errors are the same in this PR. I'm not sure they are related to any of my changes though. The general failure is the following. All are for some
|
Same failures also happened on the latest build in main |
@BrennanConroy Thank you sir! I was waiting on the DARC update PR to see if it had the same failures. Sounds like this PR is ready for a review. |
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 assuming it works 😄
Aspersions are being cast! |
This work converts all possible usages of
DllImport
toLibraryImport
in the code base. Instances ofDllImport
may still exist because the project targets pre-NET7 TFMs or has unsupported arguments./cc @jkoritzinsky @elinor-fung @jkotas @davidfowl