我在Visual Studio 2013 Express
中重建Visual Studio 2008
項目。我安裝了最新的社區版本MySQL for Windows (5.6.14)
,甚至在添加對最新的MySql.Data
程序集(6.7.4 version 4.0
)的引用後,出現以下錯誤。使用連接器/ NET和Visual Studio 2013引用MySQL快速
> Warning 1 Could not resolve this reference. Could not locate the
> assembly "MySql.Data, Version=6.2.3.0, Culture=neutral,
> PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL". Check to
> make sure the assembly exists on disk. If this reference is required
> by your code, you may get compilation errors. OVS1
奇怪的是,錯誤消息是指版本6.2.3.0。然後我卸載Connector/NET
,它是MySQL for Windows
安裝的一部分,然後安裝Connector/NET 6.7.4
的「獨立」版本。出現相同的錯誤消息。通過瀏覽添加引用到程序集Connector/NET 6.7.4 version 4.0
也似乎沒有安裝參考和出現相同的錯誤。我該如何解決?
懷疑它可能是最新的Express IDE是問題,我做了以下。
我卸載VS 2013 Express
,卸載獨立Connector/NET
,卸載MySQL for Windows
然後安裝Visual C# Express 2010
和重新安裝MySQL for Windows 5.6.14
。發生同樣的問題。