您的位置:首页 > 移动开发 > Unity3D

CS0234号错误是什么

2017-02-22 13:53 211 查看
原文地址:https://support.unity3d.com/hc/en-us/articles/206117406-What-is-CS0234-

症状

你在Console窗口上看到了如下错误:

error CS0234: The type or namespace `__’ does not exist in the namespace `__’. Are you missing an assembly reference?

原因

当你尝试访问某个不存在的类型或者命名空间时,就会报CS0234错误。



本例子的错误信息如下:

error CS0234: The type or namespace `DateTim’ does not exist in the namespace `System’. Are you missing an assembly reference?

解决方案

确保你想要使用的类型或者命名空间在该命名空间下存在,然后继续。



更多信息

https://msdn.microsoft.com/en-us/library/0e92xd7b.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  unity cs0234