Bug #88838 Connector will not install
Submitted: 8 Dec 2017 17:54 Modified: 13 Feb 2018 19:08
Reporter: Guest User Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:6.10.6 OS:Windows (10)
Assigned to: CPU Architecture:Any

[8 Dec 2017 17:54] Guest User
Description:
Connector version 6.10.5 came out today and it is uninstallable.

How to repeat:
Create a new project (like a C# .NET 4.6.2 Windows Forms Application) in Visual Studio 2015 and try to add connector version 6.10.5 using NuGet. Or, open an existing project and attempt to update the package.

You should get this error. Did not happen with the last connector version:
Failed to add reference. The package 'MySql.Data' tried to add a framework reference to 'System.Runtime' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
[11 Dec 2017 6:21] Chiranjeevi Battula
Hello John Belge,

Thank you for the bug report.
I could not repeat the issue at our end using with Visual Studio 2015, Connector/NET 6.10.5 version.
Please download from here
http://dev.mysql.com/downloads/connector/net

Thanks,
Chiranjeevi.
[11 Dec 2017 6:23] Chiranjeevi Battula
Screenshot

Attachment: Bug_88838.JPG (image/jpeg, text), 123.85 KiB.

[11 Dec 2017 17:06] Guest User
Why are you downloading MySQL.Data.Entity?
Just download MySQL.Data. That's the problem package.
[11 Dec 2017 21:11] Guest User
Reopening, see above comment.
[12 Dec 2017 3:21] Jonathan Bourassa
I Have the exact same error even after Updating the Connector as suggested.
Previous Nuget Package Version is not affected.
[12 Dec 2017 3:28] Jonathan Bourassa
Just want to add an observation, this is only affecting Visual Studio 2015. I tried with the exact same steps in Visual Studio 2017 and I had no error.
[12 Dec 2017 6:14] Chiranjeevi Battula
Hello John Belge,

Thank you for the feedback.
Verified this behavior on Visual Studio 2015 and Connector/NET 6.10.5 version.

Thanks,
Chiranjeevi.
[12 Dec 2017 6:15] Chiranjeevi Battula
Workaround:
Please add "<Reference Include="System.Runtime"/>" in your csproj file:
[12 Dec 2017 6:16] Chiranjeevi Battula
http://bugs.mysql.com/bug.php?id=88862 marked as duplicate of this one.
[12 Dec 2017 17:04] Guest User
Is that a permanent workaround (as in, it will also be required as a reference in the next version), or do your developers plan on fixing this somehow?
[20 Dec 2017 6:09] Peter Hanna
What kind of a solution is this?
Please add "<Reference Include="System.Runtime"/>" in your csproj file:
The purpose of the Nuget package is to automatically deploy the required references and config settings required.

How did this package become GA with such a bug!
I had to revert back to MySQL.Data 6.9.
[13 Jan 2018 22:38] Guest User
Extremely shocked an S1 Critical bug that can be fixed as easily as republishing the update has not been fixed!

It seems like no one cares about .NET Connector bug reports - so many unfixed bugs )':
[25 Jan 2018 4:10] Guest User
omg still not fixed in 6.10.6 released an hour ago, how embarrassing ):
[31 Jan 2018 8:33] Fabricio Rodriguez
I can confirm that version 6.10.4 still has that problem, even on Visual Studio 2017.
[31 Jan 2018 8:35] Fabricio Rodriguez
I mean 6.10.6, sorry.
[13 Feb 2018 18:05] Christine Cole
Posted by developer:
 
Fixed as of the upcoming MySQL Connector/NET 6.10.7 release, and here's the changelog entry:

MySQL Connector/NET could not be installed with NuGet packages from
Microsoft Visual Studio 2015.

Thank you for the bug report.
[13 Feb 2018 19:08] Guest User
Finally.
Fix this next plz: https://bugs.mysql.com/bug.php?id=88472