简体   繁体   English

找不到类型或命名空间“系统”。 您是否缺少程序集参考?

[英]The type or namespace 'system' could not be found. Are you missing an assembly reference?

I am compiling my first "Hello World" program of C# in mono compiler persist error我正在单声道编译器中编译我的第一个 C#“Hello World”程序持久性错误

The type or namespace 'system' could not be found.找不到类型或命名空间“系统”。 Are you missing an assembly reference?您是否缺少程序集参考?

I googled it and it says I need to add reference and it isn't available for mono compiler.我用谷歌搜索它,它说我需要添加引用,它不适用于单声道编译器。 I don't know where and what to add.我不知道在哪里添加什么。 Kindly guide me.请指导我。

The error message you've posted indicates that you are attempting to reference something in a namespace called system (note: lowercase).您发布的错误消息表明您正在尝试引用名为system (注意:小写)的命名空间中的某些内容。

C# namespaces are case-sensitive. C# 命名空间区分大小写。 The namespace System needs to be capitalized when you reference it, either in a using statement as in:命名空间System在您引用它时需要大写,无论是在using语句中,如:

using System;

or in a fully-qualified reference like this:或在像这样的完全限定的参考文献中:

System.Console.WriteLine("Hello, World!");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到类型或命名空间名称“玩家”。 (您是否缺少指令或程序集引用) - The type or namespace name ‘player’ could not be found. (Are you missing a directive or an assembly reference) 找不到类型或命名空间名称“XmlDocument”。 你错过了装配参考吗? - The type or namespace name 'XmlDocument' could not be found. Are you missing an assembly reference? “找不到类型或名称空间名称。 您是否缺少程序集参考?” Unity中的错误 - “The type or namespace name could not be found. Are you missing assembly reference ?” Error in Unity 找不到类型或名称空间名称“ IObservable”。 您是否缺少使用或指令或程序集引用? - The type or namespace name 'IObservable' could not be found. Are you missing a using or directive or assembly reference? 错误CS0246:找不到类型或名称空间名称“ AForge”。 您是否缺少using指令或程序集引用? - error CS0246: The type or namespace name `AForge' could not be found. Are you missing a using directive or an assembly reference? 在 Linux 上的 .netcore 3.0 中找不到类型或命名空间名称“System”(您是否缺少 using 指令或程序集引用?) - The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) in .netcore 3.0 on Linux 找不到类型或命名空间名称“System”(您是否缺少 using 指令或程序集引用?)已修复 - The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) fixed 错误“找不到类型或命名空间‘MyType’(或者您是否缺少程序集引用?)” - Error "The type or namespace 'MyType' could not be found (or are you missing an assembly reference?)" CS0246:找不到类型或名称空间名称“ T”。 您是否缺少using指令或程序集引用? 在C#中 - CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference? in c# 在全局名称空间中找不到类型或名称空间名称“名称空间”(您是否缺少程序集引用?) - The type or namespace name '“Namespace”' could not be found in the global namespace (are you missing an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM