类型或命名空间名称'设备'不会在命名空间'系统'存在 [英] The type or namespace name 'Device' does not exist in the namespace 'System'

查看:122
本文介绍了类型或命名空间名称'设备'不会在命名空间'系统'存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用的 会有地理座标 其目的是要通过.Net框架4.5的支持。我工作的Winodws 8,我有.Net框架4.5,但我不断收到类型或命名空间名称'设备'不会在命名空间'系统'存在错误。



任何解决方案?


解决方案

类型或命名空间名称'XXX'找不到...




始终承担绑定,如果你有得到这个错误三种可能性。




  1. 您错过了using指令。

  2. 您错过了大会参考

  3. 您已经用指令以及集结号引用的地方,但当前项目的目标框架版本比引用的程序集的目标框架版本低。



几乎所有以上三个步骤的情况下,应该可以解决这个问题。



希望这有助于。


I am trying to work with GeoCoordinate which is meant to be supported by .Net Framework 4.5. I am working on winodws 8 and I have .Net Framework 4.5, but I keep getting The type or namespace name 'Device' does not exist in the namespace 'System' error.

Any solution?

解决方案

The type or namespace name 'XXX' could not be found...

Always bear in bind, if you get this error there are three possibilities.

  1. You missed the using directive.
  2. You missed the Assembly reference
  3. You have "using directive" as well as "Assembly reference" in place but the current project's target framework version is lower than the referenced assembly target framework version.

Almost all the cases above three steps should solve the problem.

Hope this helps.

这篇关于类型或命名空间名称'设备'不会在命名空间'系统'存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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