简体   繁体   中英

How compile C# on Ubuntu editing in Emacs?

I want to use Emacs on my Linux system (Ubuntu Distro) to write and compile C# - Code. (For learning purposes, pretty basic stuff only.)

Is there a way to write, compile and execute C# code on Ubuntu using Emacs as an editor?

I'm a little confused by what to do, as the CSharpMode - Explanation on the EmacsWiki seems to be for compiling on Windows.

Also, I'm aware that Emacs itself can't compile. Where should I look for a suitable compiler?

If you want to compile C# code under Emacs you can run the command

(compile "xbuild MySolution.sln")

http://www.mono-project.com/docs/tools+libraries/tools/xbuild/

If you want code completion and intellisense-like features, have a look at omnisharp

https://github.com/nosami/Omnisharp https://github.com/sp3ctum/omnisharp-emacs

Take a look into Mono for your compiling needs, and perhaps figure out how to integrate it into the Emacs Mode. I suggest though, to make things easier, you try a real IDE built for the task, such as MonoDevelop .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM