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

查看:23
本文介绍了无法在 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

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

其中声明 DLL 文件应该被解除阻塞,在我的情况下,DLL 和任何相关文件已经被解除阻塞,所以 sugestion 不适用.

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 或 Portable 类库 dll.您无法将常规 .net dll 添加到 Windows 手机项目.

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天全站免登陆