1
我尝试使用痛饮包Raknet与统一使用,但我不能构建生成的C#文件,因为我有2,300+错误说:使用System.Runtime.InteropServices但HandleRef没有找到
The type or namespace name 'HandleRef' could not be found
从我可以告诉,HandleRef是在“System.Runtime.InteropServices”命名空间的结构。不过,我绝对有这样的说法:
using System.Runtime.InteropServices;
位于相应文件的顶部。另外,我在我的参考文献中有mscorlib。
我,什么地方出了错极其混乱。我做错了吗?有我缺少的因素吗?我怎样才能建立这个?
(我使用Visual Studio Express的2012在Windows 8中,如果说有什么区别。)
什么是您的客户端配置文件是什么样子?如果您的主窗体设置为“.Net Framework 4客户端配置文件”,您是否尝试将其设置为“.Net Framework 4”? – Brian 2013-04-08 17:25:57
我不知道如何设置/查看。但是,Google搜索后,它看起来像Visual Studio Express 2012不允许您修改目标/客户端配置文件。 :( – CodeBunny 2013-04-08 17:33:03
是否在项目属性中列出? – Brian 2013-04-08 17:35:31