linux环境下的C#

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/271690/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 21:01:23  来源:igfitidea点击:

C# in linux environment

c#linuxinstallation

提问by chinnagaja

I am currently working in C/C++ in a Unix environment and am new to Linux environments. I would like to learn about the Linux OS and learn C# as the next level of programming language for my career.

我目前在 Unix 环境中使用 C/C++,并且是 Linux 环境的新手。我想了解 Linux 操作系统并学习 C# 作为我职业生涯的下一级别编程语言。

I decided to put Ubuntu Linux on my laptop. But I am not sure whether we can write, compile and run C# programs in Linux environments or not.

我决定在我的笔记本电脑上安装 Ubuntu Linux。但是我不确定我们是否可以在 Linux 环境中编写、编译和运行 C# 程序。

The only IDE I know for C# is MS Visual Studio. Is there are any possible way to work in C# in a Linux environment?

我知道的唯一的 C# IDE 是 MS Visual Studio。在 Linux 环境中是否有任何可能的方法在 C# 中工作?

If I have no other option, I'll have both operating systems on my laptop - Vista to learn C# and Linux for the other OS.

如果我别无选择,我将在我的笔记本电脑上安装两个操作系统 - Vista 以学习 C# 和 Linux 以用于其他操作系统。

采纳答案by jfs

Learn Mono.

学习单声道

The Mono Project is an open development initiative sponsored by Novell to develop an open source, UNIX version of the Microsoft .NET development platform. Its objective is to enable UNIX developers to build and deploy cross-platform .NET Applications. The project implements various technologies developed by Microsoft that have now been submitted to the ECMA for standardization.

Mono 项目是由 Novell 赞助的一项开放式开发计划,旨在开发 Microsoft .NET 开发平台的开放源代码 UNIX 版本。其目标是使 UNIX 开发人员能够构建和部署跨平台的 .NET 应用程序。该项目实施了 Microsoft 开发的各种技术,这些技术现已提交给 ECMA 进行标准化。

You can use the MonoDevelopIDE.

您可以使用MonoDevelopIDE。

MonoDevelop is a free GNOME IDE primarily designed for C# and other .NET languages.

MonoDevelop 是一个免费的 GNOME IDE,主要为 C# 和其他 .NET 语言设计。

回答by gnud

Monois an open source .NET compiler, runtime and library.
Monodevelopis an open source C# IDE, primarily intended for linux development. It includes a GUI designer.

Mono是一个开源的 .NET 编译器、运行时和库。
Monodevelop是一个开源 C# IDE,主要用于 linux 开发。它包括一个 GUI 设计器。

回答by Creasixtine

You can also use wine, which is a free implementation of Windows' API. For this : sudo apt-get install wine then you'll be able to run Microsoft applications and do [almost] everything you like.

您还可以使用wine,它是 Windows API 的免费实现。为此: sudo apt-get install wine 然后您将能够运行 Microsoft 应用程序并执行 [几乎] 您喜欢的所有操作。

EDIT : My mistake, Visual Studiois not functional :-(

编辑:我的错误,Visual Studio不起作用:-(

回答by Brian Knoblauch

A Vista virtual machine in seamless mode running Visual Studio? Then it will appear to integrate into your desktop like any other app, but you'll have the benefit of running the real MS stuff (with C#, having real MS is still a benefit rather than a liability).

在无缝模式下运行 Visual Studio 的 Vista 虚拟机?然后它会像任何其他应用程序一样集成到您的桌面,但您将受益于运行真正的 MS 内容(使用 C#,拥有真正的 MS 仍然是一种好处而不是一种负担)。

回答by Bill Anon

I know this is an old question, but I see no one has mentioned Microsoft Visual Studio Code IDE. This could be what you are looking for if you want to do C# in Linux. As a relative NOOB I can say it brings Visual Studio to Linux. If you need a GUI IDE in Linux, this was it for me. see instructions to install it here

我知道这是一个老问题,但我看没有人提到 Microsoft Visual Studio Code IDE。如果您想在 Linux 中使用 C#,这可能就是您正在寻找的。作为一个相对的菜鸟,我可以说它将 Visual Studio 带到了 Linux。如果您需要 Linux 中的 GUI IDE,这就是我的选择。请参阅此处的安装说明