CS0234号错误是什么

原文地址: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

你可能感兴趣的:(CS0234号错误是什么)