Bug #109752 mysql net Connector Nuget Package
Submitted: 24 Jan 2023 9:34 Modified: 25 Jan 2023 13:22
Reporter: Thomas J Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:8.0.32 OS:Any
Assigned to: CPU Architecture:Any

[24 Jan 2023 9:34] Thomas J
Description:
When upgrading the Nuget Package to Mysql.Data 8.0.32 on a .NET 7.0 library and building an MAUI application for Android (SDK 30-33) that references it, there is a build error: "PE image does not have metadata".

The build is successful when using Mysql.Data 8.0.31 or lower.

How to repeat:
Create a .NET 7.0 library with Mysql.Data 8.0.32, create an MAUI project referencing it and build it for Android.

A speculative simpler way to reproduce it is to create a MAUI project, and directly reference the Mysql.Data 8.0.32, then build for Android's latest version

Suggested fix:
No idea.
[24 Jan 2023 10:08] Thomas J
I strongly suspect that this error also affects Xamarin projects
[25 Jan 2023 5:46] Bradley Grainger
Seems similar to bug #109670.
[25 Jan 2023 8:28] Thomas J
Agreed, but unlike a pure .NET 7 project, where it only produces warnings, a Maui project can't be compiled.
[25 Jan 2023 13:20] MySQL Verification Team
Hello Thomas,

Thank you for the bug report. 
Imho this is duplicate of Bug #109670, please see Bug #109670.
If you have no objections then I would like to close this as a duplicate of Bug #109670. Thank you.

Regards,
Ashwini Patil
[25 Jan 2023 13:22] Thomas J
Closed due to being a duplicate