Build a .NET dll to WP7

前端 未结 2 1512
迷失自我
迷失自我 2021-01-05 12:00

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

相关标签:
2条回答
  • 2021-01-05 12:38

    You might also want to take a look at the Portable Class Libraries stuff from Microsoft - http://msdn.microsoft.com/en-us/library/gg597391.aspx - which allows you to compile a DLL up to work for WP7, Silverlight, .Net Framework or XBOX360

    I have used it for a .Net WCF service and WP7 projects to share a common DLL.

    There are a few things to look out for, in that there are some unsupported assemblies, but in the whole it covers most of what is needed.

    0 讨论(0)
  • 2021-01-05 12:49

    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

    0 讨论(0)
提交回复
热议问题