Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build a .NET dll to WP7

How can I port a C# dll to 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:

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.

Is there an easy way to build it using Windows Phone runtime?

like image 515
dcarneiro Avatar asked Feb 28 '12 15:02

dcarneiro


1 Answers

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

like image 67
Ku6opr Avatar answered Sep 20 '22 18:09

Ku6opr