Bug #108837 Contribution: Fix unloading issues
Submitted: 20 Oct 2022 14:39 Modified: 15 Nov 2022 20:28
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[20 Oct 2022 14:39] OCA Admin
Description:
This bug tracks a contribution by Gabriele Gervasi (Github user: GabrieleGervasiPEL) as described in http://github.com/mysql/mysql-connector-net/pull/46

How to repeat:
See description

Suggested fix:
See contribution code attached
[20 Oct 2022 14:39] OCA Admin
Contribution submitted via Github - Fix unloading issues 
(*) Contribution by Gabriele Gervasi (Github GabrieleGervasiPEL, mysql-connector-net/pull/46#issuecomment-1285589334): "I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."

Contribution: git_patch_1090840916.txt (text/plain), 7.68 KiB.

[20 Oct 2022 15:09] MySQL Verification Team
Hello Gabriele Gervasi,

Thank you for the report and contribution.

regards,
Umesh
[15 Nov 2022 17:29] Daniel Valdez
Posted by developer:
 
Unloading the assembly was not being done in the right way for .NET Core frameworks. This was fixed following MS recommendations. Thanks to Gabriele Gervasi for the contribution.
[15 Nov 2022 20:28] Christine Cole
Posted by developer:
 
Fixed as of the upcoming MySQL Connector/NET 8.0.32 release, and here's the proposed changelog entry from the documentation team:

When unloading the assembly, the procedure recommended by Microsoft was
not performed accurately for .NET Core frameworks. Our thanks to Gabriele
Gervasi for the patch.

Thank you for the bug report.