无法在Windows Phone 8中添加DLL参考 [英] Unable to add DLL reference in Windows Phone 8

查看:90
本文介绍了无法在Windows Phone 8中添加DLL参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Visual Studio 2012和monogame将游戏移植到Windows Phone 8.问题是我似乎无法添加所需的DLL,错误是无法将对更高版本或不兼容程序集的引用添加到项目中".

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 to a higher version or incompatible assembly cannot be added to the project"

我尝试添加的DLL称为Bass.net.dll,它以前是在普通.Net应用程序中使用的.

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

有什么办法可以将此引用添加到游戏中,以便我可以使用它?我在网上阅读了许多文章,但似乎都有不同的解释.

Is there any way of adding this reference to the game so I can use it? I have read many articles online but all seem to have different explanations.

这些内容包括:无法添加类库dll到Windows Phone 8

其中指出DLL文件应该被解除阻止,在我的情况下,DLL和所有相关文件已经解除阻止,因此不建议使用.

which states that the DLL file should be unblocked, in my case the DLL and any related files are already unblocked so the sugestion doesn't apply.

推荐答案

该dll必须是Windows Phone dll或可移植类库dll.您无法将常规.net dll添加到Windows Phone项目中.

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.

这篇关于无法在Windows Phone 8中添加DLL参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆