Failed to add DLL link in Windows Phone 8

I am trying to port a game to Windows Phone 8 with Visual studio 2012 and monogame. The problem is that I can’t add the required DLL, the error is: “Link to a higher version or incompatible assembly cannot be added to the project”

The DLL that I am trying to add is called Bass.net.dll, and it was previously used in a regular .Net application.

Is there any way to add this link to the game so that I can use it? I read a lot of articles on the Internet, but everyone seems to have different explanations.

These include: Unable to add class library DLLs in Windows Phone 8

and

http://pcmusings.wordpress.com/2012/10/31/vs2012-windows-phone-and-the-reference-to-a-higher-version-error/

which says that the DLL file must be unlocked, in my case the DLL and any related files are already unlocked, so sugestion is not applied.

+4
source share
3 answers

The dll must be a Windows Phone dll or class library DLL. You cannot add regular DLL.net to a Windows phone project.

+6
source

WP8 uses a subset of the WinRT API; it does not support all Framework APIs

Just right-click on each of the DLLs you want to add, select "Properties", and then click on the "Unlock" button

+8
source

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

and paste into your profile.

To find out your profile, open csproj (notepad or sublime)

0
source

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


All Articles