Bug #60421 | Cannot build/compile app with Visual Studio 2010 targeting .NET Framework 3.5 | ||
---|---|---|---|
Submitted: | 10 Mar 2011 19:27 | Modified: | 11 Mar 2011 11:49 |
Reporter: | Manfred Gloiber | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.3.6 | OS: | Windows (Windows 7, 32 and 64 bit) |
Assigned to: | CPU Architecture: | Any | |
Tags: | dataset, DataSet Designer, DataTable, multi, multi target, target |
[10 Mar 2011 19:27]
Manfred Gloiber
[11 Mar 2011 9:51]
Bogdan Degtyariov
Manfred, Thanks for reporting your concerns. However, this is not a bug in MySQL Connector/NET. As you noticed, it has been built against NET Framework 4.0 and therefore loading it into the project with target Framework 3.5 is not going to work. You can easily build the driver from the sources targeting Framework 3.5. There are no special requirements for MySql.Data project (others such as Installer.VS2010 or MySql.VisualStudio.2010 might fail because they require additional components). The source code for Connector/NET 6.3.6 is available here: http://dev.mysql.com/downloads/connector/net/ Marking the report as "Not a bug".
[11 Mar 2011 11:49]
Manfred Gloiber
Thank you very much! Building the MySql.Data.dll library from source and targeting the 3.5 framework seems to work. It should be made more clearer to developers though and I wonder, why there are two folders in all that "mysqlXYZ-noinstall.zip" files namely v2 and v4 and even Reflector and ildasm shows framework 2.0 references only. Regards