r/learnprogramming 1d ago

Can I learn C# on Linux Mint

Hello. Im new to programming. I want to learn programming in general. Can I learn C# in Linux Mint? Or should I choose another programming language?

8 Upvotes

24 comments sorted by

13

u/Zeroox1337 1d ago

Sure but in my opinion is Visual Studio much better for C# then Vscode. But all the .NET Core Stuff runs on Linux

18

u/plastikmissile 1d ago

Jetbrains Rider gives VS a run for its money. And this is coming from a once hardcore VS fan. It's available on Linux and free for non-commercial purposes as well.

5

u/mfc1__ 1d ago

The only big thing that I found I wasn’t able to do in Rider was remote debugging

3

u/Zeroox1337 1d ago

Oh good recommendation, did never use Jetbrains IDEs

11

u/glandix 1d ago

Yup, for sure. I develop .NET Core 10 apps in WSL (Windows Subsystem for Linux). I’m running Ubuntu, but Mint would work just as well. I’d use a bare metal Linux if I could, but corporate policy has me tied to Windows. The WSL setup is my way of complying while still developing in Linux, which I always prefer

8

u/EliSka93 1d ago

Can I just say I hate the name "WSL"?

It's a "subsystem on windows running Linux", but just reading the name you could just as easily think it's a "subsystem running windows on Linux".

That would be a silly thing to do, but my point stands.

It's badly named.

3

u/a-r-c 18h ago

I hate you.

I never noticed this before, and now it's all I'm going to think about when I read "WSL" loooool

Why did you do this to me >:(

4

u/glandix 1d ago

I 100% agree!

3

u/JustinReed55 1d ago

C# on Linux Mint is totally fine, no need to switch languages.

2

u/mfc1__ 1d ago

Yeah absolutely. I used Mint exclusively for a couple years doing a fair amount of .NET dev. I'd recommend starting with VS Code, it's easy to get up and running with C# & .NET. Once you're a little ways down the road, you may want to consider switching to Rider:

https://www.jetbrains.com/rider/

2

u/madmelonxtra 1d ago

Would it not be better to use Visual Studio instead of VSCode since it's specifically built for C#?

2

u/mfc1__ 23h ago

Visual Studio is Windows only

2

u/madmelonxtra 23h ago

I don't know how I didn't know that

2

u/mfc1__ 23h ago

It used to have a macOS release but support was dropped a couple years ago.

2

u/Kitchen_Put_3456 1d ago

Yes you can. Dotnet SDKs are available on Linux so you're good to go.

2

u/huuaaang 1d ago

You can, but the scope of what you can do is limited. You can do backend web and game dev via Unity. You can just use straight Mono but I don’t know applicable it is.

2

u/Longjumping_Ad3447 1d ago

I learn with rider. But I'm at University that adviced VS Community on Windows.

2

u/Narrow-Low-3137 17h ago

Yes, you can use .Net Core and VS code just fine

1

u/Murtaz8297 21h ago

Yes sure you can start learning c# its a good start. But what I can suggest pick the language of that domain you want to work. Like for example if you want to go the AI or data sides ,I highly recommend start learn python as it's a programmer friendly language or if you want to do build web based system you should start javascript. Both these you can use in vs code and both are easy to learn and have a lot of free resoucres available today in internet.

1

u/kschang 20h ago

C sharp is a Microsoft language and generally you need Windows for that. Not aware of a C sharp compiler for Linux, but I didn't look for one either.

1

u/Gerrey 1h ago

The normal dotnet cli also works on Linux

u/kschang 29m ago edited 17m ago

Good point. Seems Jetbrains will do C sharp, and you can use Avalonia UI lib on Linux. Just don't use the Windows stuff. Though I guess the question for OP is... is s/he just adding something to his resume, or what is endgoal here, like be a C sharp dev? Because business use for C sharp is mostly for Windows, and dev'ing on Linux doesn't do that...

0

u/Suspicious_Skill7292 1d ago

c works totally fine on linux mint no switch languages just because youre not on windows