我有一个利用SQLite的Windows Phone 8应用程序。该应用程序具有许多数据库功能,并包含一个sqlite数据库文件,该文件在运行应用程序时被复制到本地文件夹并被访问。所有这一切都没有问题,直到我第一次切换到发布构建,没有工作。在SQLite.cs中找不到类型或名称空间'Sqlite'
我通过删除所有的NuGet引用和.dll引用“固定”这一点,并开始在这里以下步骤:A Workaround to Use SQLite in a Windows Phone 8 Application
我有一个令人沮丧的问题,其中,从调试切换到发布版本,反之亦然后,'Sqlite'再次不再被认可。
我收到以下错误:
The type or namespace name 'Sqlite' could not be found (are you missing a using directive or an assembly reference?)
这些错误是从SQLite.cs到来,特别是这些行:
using Sqlite3 = Sqlite.Sqlite3;
using Sqlite3DatabaseHandle = Sqlite.Database;
using Sqlite3Statement = Sqlite.Statement;
这怎么可能?我在这里看到了一些类似的问题,但他们都只是说删除并重新添加引用,这个问题莫名其妙地消失了。这不适合我。
那是一个编译时错误,你看到的? – Jedidja 2013-10-24 16:09:52