As the title says, you probably guessed it already. For work I mainly develop on the .NET platform using a Windows device, but at home I enjoy all the benefits of a good OS.

Now I kinda want to get my C# skills “sharper” and have some projects in mind utilising it, but I’m a bit miffed about the development tools and possibilities of deployment available for me on Linux.

Also I may want to coerce my boss to let me work on a device with my OS of choice.

Any advice from devs that are in a similar spot? What do you use for .NET development on Linux? And are there any cool multiplatform deployment possibilities (next to Xamarin/Maui) that actually let me build natively on Linux?

7 points

Rider on Linux is amazing.

Avalonia and UNO are your best bets for cross-platform.

https://platform.uno/

https://avaloniaui.net/

permalink
report
reply
9 points

I’m a professional and hobbyist C# .NET dev and I recently made the switch to a full Linux environment at home. I’ve gotten a great workflow setup with just VSCode and some extensions. I’ve actually found some ways to improve my workflow with VSCode vs Visual Studio and I’m glad I made the switch. The only thing I really miss is the phenomenal diagnostics and profiling I would get with a full Visual Studio install, but I’m getting used to using cli dotnet tools to replace that as well.

If you’re going the VSCode route, feel free to ask me more questions on useful extensions or workflow tweaks!

permalink
report
reply
1 point

What process do you use to sign your binaries?

permalink
report
parent
reply
2 points

I haven’t really distributed any binaries yet, everything I work on is just FOSS at https://github.com/MattMckenzy.

However, I did look into packaging my HomeCast project in my own debian apt repository. It’s still unsigned at the moment, but when I get to it I imagine I’ll just use dpkg and gnupg2 however I need to.

permalink
report
parent
reply
9 points
*
Deleted by creator
permalink
report
reply
31 points

I do all my editing in neovim, with omnisharp as an lsp. It works pretty well. Happy to send you my dotfiles if you want.

As far as deployment, dotnet just runs on Linux now, especially if you’re do8ng web, its all the same. I deploy through containers to kubernetes, and its super smooth

permalink
report
reply
23 points

As a non-programmer, this entire comment sounds straight out of a Neal Stephenson sci-fi story.

permalink
report
parent
reply
14 points

I understood it all, but i didn’t feel special until you said that!

permalink
report
parent
reply
4 points

You are all progenitors to the ITA.

permalink
report
parent
reply
3 points

Software devs have a lot of technobabble haha!

permalink
report
parent
reply
6 points

What is your container base image?

permalink
report
parent
reply
3 points

I use the dotnet/sdk image to build and publish into the dotnet/aspnet for runtime since it’s smaller. Both from mcr.microsoft.com

permalink
report
parent
reply
3 points

They are windows or Linux base?

permalink
report
parent
reply
3 points

I would love to use neovim for my work C# development.

I’ve tried omnisharp with vscode in the past, but I found I had to restart it frequently. Hopely it would be more stable now

Can you please share your dotfiles?

permalink
report
parent
reply
3 points
*

Just sent them to you.

Once in a blue moon i have to restart omnisharp, but its just a simple lsp restart

Much less often these days then even a year ago

I also use neovim through WSL on windows to do work

permalink
report
parent
reply
3 points

Yes, please!

permalink
report
parent
reply
4 points

Been a long while since I’ve done any C#, but for other languages (Java, Python, Kotlin) I’ve very much enjoyed the JetBrains IDEs. They have a dedicated C# one as well, though I’ve not used it.

permalink
report
reply
5 points

JetBrains Rider: I use it, and I love it; I used it during my day job on Windows until they got restrictive on only using company-authorised software (😭), but I still use it on Linux and macOS for any C# work I do outside my day job. All the benefits of their Visual Studio add-in, Resharper, are built-in to Rider.

permalink
report
parent
reply
2 points
*

All the benefits of their Visual Studio add-in, Resharper, are built-in to Rider.

And it’s faster because they don’t have to work within the restrictions placed on VS plugins.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments