2018-02-04 05:05:32 -05:00
|
|
|
#+TITLE: :lang csharp
|
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
* Table of Contents :TOC:
|
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#module-flags][Module Flags]]
|
|
|
|
- [[#plugins][Plugins]]
|
|
|
|
- [[#prerequisites][Prerequisites]]
|
|
|
|
- [[#macos][MacOS]]
|
|
|
|
- [[#arch-linux][Arch Linux]]
|
|
|
|
- [[#nixos][NixOS]]
|
2018-02-04 05:05:32 -05:00
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
* Description
|
|
|
|
This module adds C# support to Emacs. Powered by omnisharp (directly or through
|
|
|
|
LSP).
|
2018-02-04 05:05:32 -05:00
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
** Module Flags
|
2019-09-26 15:23:39 -04:00
|
|
|
+ =+lsp= Enables omnisharp through LSP support (requires omnisharp).
|
2020-12-08 19:21:54 +00:00
|
|
|
+ =+dotnet= Enables Dotnet transient interface with Sharper
|
2019-09-26 14:20:25 -04:00
|
|
|
+ =+unity= Enables special support for the [[https://unity.com/][Unity game engine]] (particularly,
|
|
|
|
support for HLSL shaders).
|
2018-02-04 05:05:32 -05:00
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
** Plugins
|
|
|
|
+ [[https://github.com/josteink/csharp-mode][csharp-mode]]
|
2020-08-01 15:57:42 -04:00
|
|
|
+ [[https://github.com/omajid/csproj-mode][csproj-mode]]
|
2020-12-08 19:21:54 +00:00
|
|
|
+ [[https://github.com/sebasmonia/sharper][sharper]] (=+dotnet=)
|
2019-09-26 14:20:25 -04:00
|
|
|
+ [[https://github.com/OmniSharp/omnisharp-emacs][omnisharp]]* (not =+lsp=)
|
|
|
|
+ [[https://github.com/midnightSuyama/shader-mode][shader-mode]]* (=+unity=)
|
|
|
|
|
|
|
|
* Prerequisites
|
2018-02-04 05:05:32 -05:00
|
|
|
This module needs:
|
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
+ omnisharp (with the ~+lsp~ flag, this must be installed externally. Without
|
|
|
|
it, use ~M-x omnisharp-install-server~)
|
2018-02-04 05:05:32 -05:00
|
|
|
+ .NET SDKs (on Windows)
|
|
|
|
+ Mono (on UNIX platforms)
|
2020-12-08 19:21:54 +00:00
|
|
|
+ .NET Core 1.X - 3.X or .NET 5 for cross platform
|
2018-02-04 05:05:32 -05:00
|
|
|
|
2019-09-26 14:20:25 -04:00
|
|
|
** TODO MacOS
|
2018-02-04 05:05:32 -05:00
|
|
|
** Arch Linux
|
2019-09-26 14:20:25 -04:00
|
|
|
#+BEGIN_SRC sh
|
2018-02-04 05:05:32 -05:00
|
|
|
sudo pacman --needed --noconfirm -S mono
|
|
|
|
#+END_SRC
|
2019-09-26 14:20:25 -04:00
|
|
|
** TODO NixOS
|