Unable to add DLL reference in Windows Phone 8

前端 未结 3 2065
[愿得一人]
[愿得一人] 2020-12-18 09:55

I am attempting to port a game to Windows Phone 8 with Visual studio 2012 and monogame. The problem is that I cant seem to add the DLL required, the error is \"A reference t

相关标签:
3条回答
  • 2020-12-18 10:46

    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)

    0 讨论(0)
  • 2020-12-18 10:47

    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

    0 讨论(0)
  • 2020-12-18 10:54

    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.

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