0

Ok Seriously confused here.

I'm using Visual Studio 2012 in a Windows Phone 8 project, I have SQLite installed from NuGet into my Visual Studio, as well .NET framework. I type in "using System.Data.SqlClient; and it says the assembly reference is missing? I know this isn't a .DLL as SqlClient is part of the System.Data assembly, however it only provides me with the options of System.Data.Common and System.Data.Linq when using this, not SqlClient, can anyone explain why? Been banging my head over this and googling like mad for hours!

2
  • Which NuGet package did you use? It is likely you need something like System.Data.SQLite not System.Data.SqlClient. Commented Apr 17, 2014 at 17:06
  • @Scott Chamberlain Cheers lad I think that was it! Commented Apr 17, 2014 at 17:16

1 Answer 1

3

System.Data.SqlClient is used for SQL Server, which you probably don't need on WP8. You are looking for System.Data.SQLite

so use:

using System.Data.SQLite;
Sign up to request clarification or add additional context in comments.

1 Comment

mate you're a legend thank you! I think that was it, bloody hell!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.