2

When adding reference to the MySQL .NET connector I am seeing two entries listed for MySql.Data

one with a runtime version of 4.0.30319 and another with a runtime version of 2.0.50727

Which should I reference? does it make a difference?

rlemon
  • 17,518
  • 14
  • 92
  • 123

2 Answers2

6

If your project targets .NET Framework 4.0, then you'll want to reference the 4.0 version. Otherwise, use the 2.0 version (even if your project targets 3.5).

You can check the version your project targets by right-clicking the project in Visual Studio and selecting properties.

Grant Winney
  • 65,241
  • 13
  • 115
  • 165
3

If your project is using the .NET Framework 4.0, the 4.0.30319. Otherwise, 2.0.50727

Tobias Schittkowski
  • 2,221
  • 2
  • 16
  • 25