Best C# IDE/Compiler for Linux?
jcarr @ jcarr @programming.dev Posts 0Comments 2Joined 4 wk. ago
jcarr @ jcarr @programming.dev
Posts
0
Comments
2
Joined
4 wk. ago
Depending on your distro, you may have the .NET SDK in your packages already. Debian doesn't have it. I'm not sure about Mint. I use Ubuntu MATE and .NET 8 is available. Check with this:
apt search dotnet-sdk
If you see something like dotnet-sdk-8.0 in the list, this will install everything you need:
sudo apt install dotnet-sdk-8.0
If it's not available in the package repo, it's not difficult to install manually. Follow the instructions here: https://learn.microsoft.com/en-us/dotnet/core/install/linux?WT.mc_id=dotnet-35129-website#manual-installation
For my development environment, I use VS Code with the following extensions:
- C# Dev Kit (Microsoft) -- This provides the full development experience: intellisense, debugger, project management, etc.
- C# Extensions (JosKreativ) -- This provides handy helpers for scaffolding classes and other module types.
- Todo Tree (Gruntfuggly) -- Locates TODO comments in your code and displays them in a dedicated tree view.
Once you've installed the SDK along with VS Code and the associated extensions, getting started is as easy as:
dotnet new console -o HelloWorld cd HelloWorld code .
Clarification for Debian!
I recently installed on Debian 13 as well and these are the instructions I followed: https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian?tabs=dotnet8
The instructions say Debian 12, but they do work on Debian 13, FWIW.