简体   繁体   English

使用Visual Studio 2010的Windows 7电话应用程序不支持DLL

[英]DLL is not supporting in windows 7 phone application using visual studio 2010

If I add any dll (like sqllite3.dll, sqlliteclient.dll) I get the below message: 如果添加任何dll(例如sqllite3.dll,sqlliteclient.dll),则会收到以下消息:

Reference cannot be added to l because it was not built using the Windows Phone runtime. 无法将引用添加到l中,因为它不是使用Windows Phone运行时构建的。 Windows Phone projects will work only with Windows Phone assemblies. Windows Phone项目仅适用于Windows Phone程序集。

I could really do with a clean slate to start with that. 我真的可以从一开始就做好准备。 Kindly provide simple database connection using database with reference dll. 请使用带有参考dll的数据库提供简单的数据库连接。

You cannot run SQLite in Windows Phone 7, since it cannot run native code. 您无法在Windows Phone 7中运行SQLite,因为它无法运行本机代码。

Instead, use a C# implementation . 而是使用C#实现

you can also use SterlingDB based on top of isolated storage, with linq support: 您还可以基于linq支持在隔离存储的基础上使用SterlingDB:

http://sterling.codeplex.com/ http://sterling.codeplex.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM