前端之家收集整理的这篇文章主要介绍了
为WP7构建.NET dll,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何将C#dll移植到WP7?
我在桌面上成功构建了.dll源代码但是当我尝试在WP7项目上引用dll时,我收到以下错误:
Reference cannot be added to c:\path\to\my.dll because it was not built using
the Windows Phone runtime. Windows Phone projects will work only with
Windows Phone assemblies.
有没有一种使用Windows Phone运行时构建它的简单方法?
创建Windows Phone Library项目,将源
代码复制到该项目并
解决出现的所有
错误.而且你可以从Windows Phone项目中引用这个dll