在 Debian 中编写 C#

Pie*_*e B 7 programming c# debian software-installation

我想在 Debian 系统上学习 C#。

我必须安装什么?

是否有类似交互式提示之类的东西,我可以在其中尝试运行代码片段?

我必须学习 C# 并且我有一台双启动计算机,但不想为了学习 C# 而关闭 Linux 并启动 Windows。

Mic*_*mer 12

我必须安装什么?

apt install mono-mcs
Run Code Online (Sandbox Code Playgroud)

和可选

apt install monodevelop
Run Code Online (Sandbox Code Playgroud)

如果你想要更像 IDE 的东西。

mcs是编译器。您可以运行已编译的程序mono prog.exe(或者./prog.exebinfmt_misc支持启用,这我相信Debian的默认会做)。

是否有类似提示,我可以在其中尝试运行代码片段?

apt install mono-csharp-shell
Run Code Online (Sandbox Code Playgroud)

进而

$ csharp
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> Console.WriteLine("Hello world!")
Hello world!
csharp>
Run Code Online (Sandbox Code Playgroud)