64 位 SQLite.dll 和任何 CPU [英] 64-bit SQLite.dll and Any CPU

查看:30
本文介绍了64 位 SQLite.dll 和任何 CPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在花了一些时间试图找出这个问题之后,我终于决定在这里发布一个问题.几天前,我在 sqlite 论坛上发布了同样的问题,但该网站目前不可用.http://sqlite.phxsoftware.com/forums/t/2669.aspx

I finally decided to post a question here after some time spent trying to figure out this problem. A few days ago I posted this same question on sqlite forum but that website is currently not available . http://sqlite.phxsoftware.com/forums/t/2669.aspx

那么,问题来了:我有带有 64 位操作系统的 64 位计算机.一位同事拥有 64 位计算机和 32 位操作系统.我们开发了一个 Web 应用程序,它从服务器带来大量数据并将其保存在内存 SQLite 数据库中,因此一切都可以运行得更快.现在我们在两台机器上都使用 32 位 SQLite.dll.但是我们想切换到 64 位 dll(并增加我们可以使用和存储的数据量).我已经从 http://system.data.sqlite 下载.org/index.html/doc/trunk/www/downloads.wiki以下文件:sqlite-dotnet-x64-1007300.exe 并安装在我的机器上.我已将 System.Data.Sqlite.dll 和 System.Data.Sqlite.Linq.dll 放入 lib 文件夹,同时将 Sqlite.Interop.dll 复制到 binDebug 文件夹中.当我使用 Any CPU 调试应用程序时,我的机器上一切正常,但是,我的同事出现错误.

So, here is the question: I have 64-bit computer with 64-bit OS. A co-worker has 64-bit computer with 32-bit OS. We develop a web application that brings a lot of data from server and keeps it in memory SQLite database, so everything can run faster. Right now we use 32-bit SQLite.dll on both machines. However we want to switch to 64-bit dll (and increase amount of data we can use and store). I have downloaded from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki folowing files: sqlite-dotnet-x64-1007300.exe and instaled on my machine. I have placed System.Data.Sqlite.dll and System.Data.Sqlite.Linq.dll into lib folder, while I have copied Sqlite.Interop.dll into binDebug folder. When I debug application by using Any CPU everything works fine on my machine, however, my co-worker is getting errors.

我想使用 64 位 dll 并使用任何 CPU 构建 exe 文件,而不用担心系统是 32 还是 64.这可能吗?如果这是我应该做的来实现这一目标?提前致谢!

I want to use 64-bit dll and build exe file using Any CPU and not worry if the system is 32 or 64. Is that possible? And if it is what I should do to accomplish that? Thanks in advance!

附言我们使用 C# - Visual Studio 2008 3.5 SP1

P.S. We use C# - Visual Studio 2008 3.5 SP1

推荐答案

我猜您必须同时提供 32 位和 64 位 SQLite.dll,并根据目标系统架构安装一个或另一个.

I guess that you'll have to ship both 32 bit and 64 bit SQLite.dlls, and install one or the other depending on the target system architecture.

这篇关于64 位 SQLite.dll 和任何 CPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆