建立一个.NET的DLL WP7 [英] Build a .NET dll to WP7
问题描述
我如何端口一个C#DLL到WP7?
How can I port a C# dll to WP7?
我该.dll源$ C $ C成功建立在桌面上,但是当我尝试引用该dll的一个WP7项目中,我得到以下错误:
I have the .dll source code successfully building on desktop but when I try to reference the dll on a WP7 project I get the following error:
引用不能被添加到c:\路径\到\ my.dll,因为它不使用内置 在Windows Phone运行。 Windows Phone的项目将只与 Windows Phone的组件。
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运行时建立的呢?
Is there an easy way to build it using Windows Phone runtime?
推荐答案
创建一个的Windows Phone库
的项目,复制源代码codeS到它,并解决所有错误出现。而且比你可以参考这个 DLL
从的Windows Phone
项目
Create a Windows Phone Library
project, copy source codes to it and resolve all errors that appears. And than you can reference this dll
from Windows Phone
project
这篇关于建立一个.NET的DLL WP7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!