问题
在控制台窗口中显示如下错误信息:
error CS0234: The type or namespace `_____' does not exist in the namespace `_____'. Are you missing an assembly reference?
原因
这个错误的产生是因为您尝试指派一个有效的命名空间中的一个并不存在的类型或者命名空间
示例中错误显示如下:
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