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

.NET Core changed the field "iconData" to "_iconData" in System.Drawing.Icon #2

Open
Sugz opened this issue Jan 26, 2020 · 1 comment

Comments

@Sugz
Copy link

Sugz commented Jan 26, 2020

When using this project with .NET Core, you have to use the new package from microsoft for System.Drawing (this one: System.Drawing.Common) in which they apparently changed the field name of "iconData" to "_iconData", hence the static IconUtil() method is currently throwing a System.ArgumentNullException for gen.Emit(OpCodes.Ldfld, fi); since the variable fi is null.

I tried with "_iconData" and everything seems to be fine now.

@ghost
Copy link

ghost commented Mar 26, 2020

Thanks @Sugz, I was stuck with this in my project trying to find what went wrong. This solved my issue. Thanks again 😄

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

1 participant