marcucio/Cordova-WP-SqlitePlugin

Namespace Community could not be found

sktnetwork opened this issue · 12 comments

When trying to directly build your .sln, it shows errors. In sqlite.cs, it shows Namespace Community could not be found at "using Community.CsharpSqlite;".

So, I though I need to include Community.CsharpSqlite dll. I tried to add 'Precompiled Binaries for Windows Phone 8' from http://www.sqlite.org/download.html. But, it gives error. "A reference to higher version or incompatible assembly cannot be added to the project.".

Then, I downloaded project from http://code.google.com/p/csharp-sqlite/downloads/list
But it even does not compiles. I have added nuget package sqlite. Tried everything I could, but can not even run your solution. Please help or upload the reference .dll as well that works out of box for WP8.

thanks for letting me know, I will try to build from scratch to see if I can reproduce

@marcucio, you're welcome. I have been able to compile it in DEBUG mode. By downloading this one. http://code.google.com/p/csharp-sqlite/downloads/detail?name=csharp-sqlite_3_7_7_1_71.zip&can=2&q=

And building the "Community.CsharpSqlite.WinPhone" solution.

The biggest problem is that I am not able to build it in RELEASE mode in Visual Studio 2012 Ultimate. It throws 100+ errors. Maybe a configuration error. Unless it compiles in RELEASE mode, I don't think we can use it.

Please take a look and include a release version .dll file with your project on GIT. That would be a great great help.

What are the errors it gives you when you build in Release mode? I think I might have had to change some of the build flags in the release project.

On Feb 8, 2013, at 10:11 AM, Shamit Kumar Tomar notifications@github.com wrote:

@marcucio, you're welcome. I have been able to compile it in DEBUG mode. By downloading this one. http://code.google.com/p/csharp-sqlite/downloads/detail?name=csharp-sqlite_3_7_7_1_71.zip&can=2&q=

And building the "Community.CsharpSqlite.WinPhone" solution.

The biggest problem is that I am not able to build it in RELEASE mode in Visual Studio 2012 Ultimate. It throws 100+ errors. Maybe a configuration error. Unless it compiles in RELEASE mode, I don't think we can use it.

Please take a look and include a release version .dll file with your project on GIT. That would be a great great help.


Reply to this email directly or view it on GitHub.

Your project does not give errors other than Community.Csharp.... namespace not found. For that I need a .dll of Community.CsharpSqlite

So, building "Community.CsharpSqlite.WinPhone" in RELEASE mode, so that I can have a DLL that I can include in your project. This gives bunch of errors in VS 2012. PFA the screenshot.

errors in release

Ok, I will not be by my windows computer for a few days so I can't test it, but you may want to try going into the project settings for sqlite and make the build flags for the release target match the build flags for the debug target.

I'm pretty sure this is I had to change the build flags for the release target to make the project compile.

You can also post a bug on the csharpsqlite project because ultimately this is an issue with their project.

On Feb 8, 2013, at 10:27 AM, Shamit Kumar Tomar notifications@github.com wrote:

Your project does not give errors other than Community.Csharp.... namespace not found. For that I need a .dll of Community.CsharpSqlite

So, building "Community.CsharpSqlite.WinPhone" in RELEASE mode, so that I can have a DLL that I can include in your project. This gives bunch of errors in VS 2012. PFA the screenshot.


Reply to this email directly or view it on GitHub.

Thank you for this tip. I will certainly try it and if I succeed, I will let you know.

You need to first follow the directions here for Javascript apps:
http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx

Then install This plugin:
https://github.com/doo/SQLite3-WinRT
(need to remove component_manifest.rc from the SQLite3 project so that we don’t get compile error)

Hey there, I am also getting this issue. I can compile the CSharp Sqlite project perfect in debug, but unable to in release mode. I find it hard no one's really commented on this on their site. I've followed your previous links exactly marcucio

I get 500+ errors in release mode, just random things like

Invalid token 'struct' in class, struct, or interface member declaration c:\Users\Dimitri\Downloads\csharp-sqlite_3_7_7_1_71\Community.CsharpSqlite\src\vdbeblob_c.cs 37 9 Community.CsharpSqlite.WinPhone

This is un-modded source code, doing this in VS 2012 Express.

Also, it doesn't seem the /www/ Test works with the debug mode all I get is

Testing Open Error: Pass
Testing Close:

and then it clears itself once I push Test Sqlite button again

when I have a sec I will try to build fresh again, I just have to get it set back up on my devel machine.

Ok thanks man appreciate it,if you manage to compile the WP DLL could you pass it over? :) I can not figure out how to compile the windows phone version of CSharp-SQLite, the base project works but because its missing some #defines so the infected areas are commented out

pull the latest, i added the sql lib I am using. I might have made modifications to it, I'm not sure so I checked the whole thing in

Bless works perfect! Thank you for the support :)