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 .NET 8 support #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add .NET 8 support #8

wants to merge 1 commit into from

Conversation

Kizari
Copy link

@Kizari Kizari commented Jul 21, 2024

I realise this is a laughably small PR, but I'm mainly submitting it to hopefully save you some time in regards to the information I'm writing here. I figured since I did this for my own use-case anyway, I may as well give something back. In saying that, thank you for your work on this tool, it has now helped me immensely and it's greatly appreciated.

I have changed the PythonNetStubGenerator.Tool project to target multiple frameworks so as not to drop .NET 6 support if it's needed, and have added .NET 8 as an extra target. I am uncertain that it needs to continue targeting .NET 6 to be able to generate stubs for .NET 6 libraries, but I would assume so. I have however tested with a .NET 8 DLL and it works great.

One issue I ran into with my .NET 8 library was that it failed to find System.Drawing.Common since that was removed in .NET 7 if I recall correctly. I think this was missing from my debug folder (where I generated the stubs from) since it builds as framework-dependent, because I noticed System.Drawing.Common.dll is there in the same folder when I publish the application. Not an issue since I could just run the stub generator against the self-contained publish build, but something to keep in mind if you run into a similar problem or wish to support framework-dependent builds. I'd be happy to add something to the README or documentation about this point if you'd like.

You also updated the README 5 months ago stating that you'd like help making this repository something you could be proud of. I'm more of a senior developer than an intermediate, but I'd be more than willing to help nonetheless if you still want someone to work on this with you. Just let me know if so and we can get in contact.

Changed the Tool project to target multiple frameworks so as not to drop .NET 6 support. Added .NET 8 to this.
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

Successfully merging this pull request may close these issues.

1 participant