用c#.net操作sqlite会用到System.Data.SQLite.dll,网上例子很多。
我为了解决汉字字符编码问题,详细见上一贴http://topic.csdn.net/u/20090601/11/9EDB203E-AE0E-41D8-B21F-CD6147F31408.html需要修改System.Data.SQLite.dll源代码。现在在vs2008环境下,自己在编译System.Data.SQLite.dll的时候,编译能通过,但是生成的System.Data.SQLite.dll就168K比官方的少了大几百K,检查一下是少了文件夹SQLite.Interop里面的内容。运行open数据库时候,在sqlite3.cs line112 UnsafeNativeMethods之前没有加载到SQLite.Interop.dll而为空出错,请教大家vs2008如何编译完整的System.Data.SQLite.dllSystem.Data.SQLite下载地址http://sqlite.phxsoftware.com
我为了解决汉字字符编码问题,详细见上一贴http://topic.csdn.net/u/20090601/11/9EDB203E-AE0E-41D8-B21F-CD6147F31408.html需要修改System.Data.SQLite.dll源代码。现在在vs2008环境下,自己在编译System.Data.SQLite.dll的时候,编译能通过,但是生成的System.Data.SQLite.dll就168K比官方的少了大几百K,检查一下是少了文件夹SQLite.Interop里面的内容。运行open数据库时候,在sqlite3.cs line112 UnsafeNativeMethods之前没有加载到SQLite.Interop.dll而为空出错,请教大家vs2008如何编译完整的System.Data.SQLite.dllSystem.Data.SQLite下载地址http://sqlite.phxsoftware.com
Name="VCPostBuildEventTool"
Description="Merging binaries ..."
CommandLine="..\bin\tools\mergebin.exe /S:.clr ..\System.Data.SQLite\bin\$(TargetFileName) "$(TargetPath)"
sn -Ra "$(TargetPath)" ..\System.Data.SQLite\System.Data.SQLite.snk
"
/>
Debug 的: <Tool
Name="VCPostBuildEventTool"
CommandLine=""
/>
大哥,你说的<Tool />在什么地方设置啊
但是我还有个小疑问,为什么我编译出来的是两个dll,官方的是一个,是因为Description="Merging binaries ..."CommandLine="..\bin\tools\mergebin.exe 参数设置的原因吗,我如何将两个dll拼一起去。
Release 编译进行了合并, 是一个 dll
作者自己写了一个工具用来合并两个 dll, 一个是纯 win32 dll, 一个是程序集 dll,
合并后的 dll 同时可以被 C 客户端使用, 也可以被托管代码使用.
这个技术也可以学习下, 很强大.