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

Use source generation for dll imports #10

Open
SbiCA opened this issue Oct 31, 2022 · 3 comments
Open

Use source generation for dll imports #10

SbiCA opened this issue Oct 31, 2022 · 3 comments

Comments

@SbiCA
Copy link

SbiCA commented Oct 31, 2022

Hi @StefH ,

First of all thanks for you work and this library 🎉

Have you thought on using the source generation introduced in .NET 7 and maybe adding some benchmarks?

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/cross-platform
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation

Cheers
Simon

@StefH
Copy link
Owner

StefH commented Oct 31, 2022

@SbiCA
This looks interesting...

If you have time, you can also start on a PR for this?

@StefH
Copy link
Owner

StefH commented Nov 26, 2022

@SbiCA
Do you have time to start a PR or provide some more example?

@SbiCA
Copy link
Author

SbiCA commented Dec 5, 2022

@StefH sorry for the delay I'm afraid not yet and I don't think I have time this year to help you on that. There are a few good talks on source generation e.g. https://www.youtube.com/watch?v=azJm_Y2nbAI . I m also happy to jump on a slack/hangouts call and discuss possible approaches if you have some time available but from my end it will be hard to contribute code the next 3 months

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

No branches or pull requests

2 participants