Bug #64080 Compile MySql.Data / MySql.Data.Entity to target .NET 4.0 Client Profile
Submitted: 20 Jan 2012 11:57 Modified: 13 Mar 16:43
Reporter: Markus Ewald Email Updates:
Status: Won't fix Impact on me:
None 
Category:Connector / NET Severity:S4 (Feature request)
Version:6.4.4 OS:Any
Assigned to: CPU Architecture:Any
Tags: client profile, connector, NET

[20 Jan 2012 11:57] Markus Ewald
Description:
The MySql.Data.dll and MySql.Data.Entity.dll assemblies shipped with the current binary distribution of the MySql Connector/Net needlessly target the .NET 4.0 Extended Profile.

This makes it impossible to use MySql Connector/Net in a .NET 4.0 Client Profile application (which is the default setting for most project templates in Visual Studio 2010).

Seeing that the sources of both assemblies compile cleanly and without any changes for the .NET 4.0 Client Profile (and the only action required being to flip a single switch in the project settings) I'd like to ask for future versions of these two assemblies to be compiled targeting the .NET 4.0 Client Profile.

There are no negative consequences from changing to the .NET 4.0 Client Profile - other assemblies targeting the .NET 4.0 Extended Profile (like MySql.Web.dll) can reference .NET 4.0 Client Profile assemblies.

How to repeat:
1. Download binary distribution of MySql Connector/Net
2. Use Visual Studio 2010 to create either a new Console Application, WPF Application or Windows Forms Application
3. Add a reference to MySql.Data.dll and MySql.Data.Entity.dll

The compiler will issue a warning for both MySql assemblies.
Attempting to use any of the MySql classes results in a compilation error.

Suggested fix:
Change the "Target Framework" under the "Application" tab of the project configuration for the MySql.Data and MySql.Data.Entity projects to state ".NET Framework 4 Client Profile".

Compile solution, run tests, deploy new version, profit :)
[27 May 2012 9:19] Valeriy Kravchuk
Thank you for the feature request.