Create .NET dll for WP7

How can I put a C # DLL in WP7?

I have the .dll source code successfully created on the desktop, but when I try to reference the DLL in a WP7 project, I get the following error:

The link cannot be added to c: \ path \ to \ my.dll, because it was not created using Windows Phone runtime. Windows Phone projects will only work with Windows Phone Builds.

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

+6
source share
2 answers

Create a Windows Phone Library project, copy the source code, and fix any errors that occur. And how can you reference the dll project from Windows Phone

+6
source

You can also take a look at the material of portable class classes from Microsoft - http://msdn.microsoft.com/en-us/library/gg597391.aspx - which allows you to compile DLLs working with WP7, Silverlight, .NET Framework or XBOX360

I used it to run .Net WCF and WP7 projects to share a common DLL.

There are a few things to watch out for, as there are some unsupported builds, but overall it covers most of what is needed.

+3
source

Source: https://habr.com/ru/post/909558/


All Articles