开发者

MySql.Data c# .net library which runtime should I use?

开发者 https://www.devze.com 2023-04-01 01:23 出处:网络
When adding reference to开发者_运维问答 the MySQL .NET connector I am seeing two entries listed for MySql.Data

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?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号