Re: There is something fishy in Sandard/Core versions of MySQL.Data.dll
Posted by: Tuomas Hietanen
Date: October 08, 2017 06:58AM

Partially the problem might be that I had Net Standard 2.0 in my computer.

I managed to compile 6.10.3-rc from sources to .NET Standard 2.0 and resolved the problem by following changes:

Files to modify from MySQL.Data/src path:

---

MySQL.Data.csproj:
TargetFrameworks-tag: Add netstandard2.0

PackageReferences and DefineConstants are the same as netstandard1.3

---

AssemvlyInfo.cs:

#if !NET_CORE
[assembly: AllowPartiallyTrustedCallers()]
#endif

---
datareader.cs and ISSchemaProvider.cs:
Replace: System.Data.SqlTypes.SqlNullValueException with something else e.g. Exception
(Only one throw and catch)

Options: ReplyQuote


Subject
Written By
Posted
Re: There is something fishy in Sandard/Core versions of MySQL.Data.dll
October 08, 2017 06:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.