构建 .NET dll 到 WP7 [英] Build a .NET dll to WP7

查看:19
本文介绍了构建 .NET dll 到 WP7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 C# dll 移植到 WP7?

How can I port a C# dll to WP7?

我在桌面上成功构建了 .dll 源代码,但是当我尝试在 WP7 项目中引用 dll 时,我收到以下错误:

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:path omy.dll,因为它不是使用构建的Windows Phone 运行时.Windows Phone 项目仅适用于Windows Phone 程序集.

Reference cannot be added to c:path omy.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 Library 项目,将源代码复制到其中并解决出现的所有错误.然后你可以从 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屋!

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