Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linq2db (linq to sqlite) on .NET 4.0 ? #18

Closed
fmfer opened this issue May 29, 2013 · 3 comments
Closed

Linq2db (linq to sqlite) on .NET 4.0 ? #18

fmfer opened this issue May 29, 2013 · 3 comments

Comments

@fmfer
Copy link

fmfer commented May 29, 2013

My company requires our product to target .Net 4.0, the compiler complains lin2db needs System.Data.Services 4.0.0.0, which seems to require .Net 4.5. Is there any chance of getting this working? or maybe this is some problem with my setup? To help answer this questions, please I would like to know if it's possible at all to work with linq2db on .NET 4.0 or if it was made depending heavily on 4.5.

Best regards.
Marcelo.

@fmfer
Copy link
Author

fmfer commented May 29, 2013

Okay I got the thing working for 4.0. What I did was: Create an empty project that uses Linq and Sqlite, very simple, read a field from a record in a database and fill a label with its string. Then I worked on making it 4.0-runnable, one of those steps was to copy the dlls for SQLite for .Net 4.0 to the bin directory (System.Data.SQLite.dll and the Linq one). Copied the right Interop dll (x86 in my case). Finally I got it working.
Then I copied the set of working dlls to my fat project's bin directory, replacing everything that resisted. That did the trick.

@igor-tkachev
Copy link
Member

So, can we close the issue?

@fmfer
Copy link
Author

fmfer commented Jun 3, 2013

Yes, no problem. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants