Unable to add DLL reference in Windows Phone 8

孤街浪徒 提交于 2019-11-29 07:54:06

the dll need to be a Windows Phone dll or a Portable class library dll. You can't add a regular .net dll to a windows phone project.

WP8 uses a subset of WinRT API, it don't support all Framework API

Just make a right-click on each of the DLL that you want to add, choose Properties and then click on the Unblock button

Copy the xml in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.5\Profile\Profile78\SupportedFrameworks folder (changing the drive letter accordingly) and select [plattform].xml

and paste in your profile.

To know your profile open csproj with (notepad or sublime)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!