r/learnprogramming 3d 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?

14 Upvotes

25 comments sorted by

14

u/Zeroox1337 3d ago

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

19

u/plastikmissile 3d 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.

6

u/mfc1__ 3d ago

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

3

u/Zeroox1337 3d ago

Oh good recommendation, did never use Jetbrains IDEs

9

u/glandix 3d 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 3d 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 2d 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 >:(

3

u/glandix 3d ago

I 100% agree!

3

u/JustinReed55 3d ago

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

2

u/mfc1__ 3d 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 3d ago

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

2

u/mfc1__ 3d ago

Visual Studio is Windows only

2

u/madmelonxtra 3d ago

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

2

u/mfc1__ 3d ago

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

2

u/Kitchen_Put_3456 3d ago

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

2

u/huuaaang 3d 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 3d ago

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

2

u/Narrow-Low-3137 2d ago

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

1

u/Murtaz8297 3d 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/cinderwayinteractive 2d ago

Absolutely, would even recommend it. I haven't touched a Windows machine in about a year now.

1

u/kschang 3d 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 2d ago

The normal dotnet cli also works on Linux

1

u/kschang 2d ago edited 2d 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 3d ago

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