[英]the selected file name cannot be displayed in the text box from C# WPF VS2013 on win7
[英]SQLite3.dll cannot be used in C# application in VS2013 ON WIN 7
我需要在win7上的VS2013中為我的應用程序(x64)C#訪問SQLite3.dll。
從SQLite:sqlite3.dll與System.Data.SQLite.dll?
我看到
"The sqlite3.dll is unmanaged code containing the databae engine itself and it is embedded as resource inside the managed System.Data.SQLite assembly. "
因此,我從程序包管理器安裝了System.Data.SQLite.x64:
PM> Install-Package System.Data.SQLite.x64
Attempting to resolve dependency 'System.Data.SQLite.Linq (≥ 1.0.99.0)'.
Attempting to resolve dependency 'System.Data.SQLite.EF6 (≥ 1.0.99.0)'.
Attempting to resolve dependency 'EntityFramework (≥ 6.0.0.0)'.
'System.Data.SQLite.x64 1.0.99.0' already installed.
My_project already has a reference to 'System.Data.SQLite.x64 1.0.99.0'.
我在VS2013中添加了它作為參考。 但是,我得到了錯誤:
An unhandled exception of type 'System.DllNotFoundException' occurred in Devart.Data.SQLite.dll
Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
然后,我從http://www.sqlite.org/download.html下載了Sqlite3.dll(x64)
我將Sqlite3.dll和Sqlite3.def放在bin / Debug中,並將其添加為內容文件,並將其“復制到輸出”的屬性更改為“總是復制”,但出現錯誤。
An unhandled exception of type 'Devart.Data.SQLite.SQLiteException' occurred in Devart.Data.SQLite.dll
Additional information: Assembly that contains embedded dotConnect for SQLite license cannot be used with this application: my_app.exe
然后,我下載了Sqlite3.dll(x86),並執行了與x64相同的操作。 有同樣的錯誤:
Additional information: Assembly that contains embedded dotConnect for SQLite license cannot be used with this application: my_app.exe.
鏈接也無濟於事, 無法加載文件或程序集'System.Data.SQLite'
有什么建議么 ? 謝謝。
這似乎是參考該位置看起來,集包含從上面的鏈接嵌入的代碼,它需要一個許可證工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.