2017-02-28 110 views
4

我剛剛下載了最新版本的MySqlConnector(https://dev.mysql.com/downloads/connector/net/),目前版本爲6.9.9。MySqlConnector 6.9.9 for VS2008(framework 3.5)

以前的版本6.9.8,我可以在Visual Studio 2008中使用框架3.5。 但是,現在下載只包含v4.0和v4.5的程序集。

通常我只是在我的項目中更新對mysql.data.dll的引用,但現在我只能將其更改爲v4/4.5版本,這顯然與V3.5項目無效。

任何人都可以告訴我在哪裏可以找到或如何下載V3.9程序集版本6.9.9? 還是V6.9.8只是框架3.5的最新版本? (雖然我無法在任何地方找到此信息)

順便說一句:如果這不是正確的地方要問,請指向正確的社區。

用C machine.config中的內容:@Programmer的評論後

編輯\的Windows \ Microsoft.NET \框架\ V2.0.50727 \ CONFIG \

<runtime> 
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
    <dependentAssembly> 
    <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" /> 
    <bindingRedirect oldVersion="6.7.4.0" newVersion="6.9.9.0" /> 
    </dependentAssembly> 
    <dependentAssembly> 
    <assemblyIdentity name="MySql.Data.Entity" publicKeyToken="c5687fc88969c44d" culture="neutral" /> 
    <bindingRedirect oldVersion="6.7.4.0" newVersion="6.9.9.0" /> 
    </dependentAssembly> 
    <dependentAssembly> 
    <assemblyIdentity name="MySql.Web" publicKeyToken="c5687fc88969c44d" culture="neutral" /> 
    <bindingRedirect oldVersion="6.7.4.0" newVersion="6.9.9.0" /> 
    </dependentAssembly> 
</assemblyBinding> 
</runtime> 
... 
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> 
+0

我會嘗試在較新版本的Visual Studio中使用NuGet包管理器。否則,您的替代解決方案是手動刪除相應GAC位置中的.dll文件。 :/希望有所幫助!附:什麼阻止你切換到4.5? – Programmer

+0

刪除GAC中的文件?你的意思是我可以在3.5項目中引用4.0 dll? (關於什麼讓我回來切換...錢)) – Johan

+0

這是一個很好的閱讀爲v3.5,要求你放棄框架v2.0的MySql.Data.dll。這是一箇舊飼料,但可能會導致你在正確的方向... https://bugs.mysql.com/bug.php?id=64707 – Programmer

回答

0

按上MySQL文檔網站:

從版本6.7開始,Connector/Net將不再包含用於Visual Studio集成的MySQL數據庫 。該功能現在可在名爲MySQL的Visual Studio 的獨立產品中使用,該產品可使用適用於Windows的MySQL安裝程序。

的MySQL安裝的Windows是可供下載:

https://dev.mysql.com/downloads/windows/installer/

+0

嗨,thnx您的答覆。不幸的是,這個安裝中的mysql.data.dll版本是6.8.3(而我已經有6.9.8) – Johan