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?

  • mark@infosec.pub
    link
    fedilink
    arrow-up
    30
    ·
    8 months ago

    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

    • loops@beehaw.org
      link
      fedilink
      English
      arrow-up
      23
      arrow-down
      1
      ·
      8 months ago

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

    • rfvizarra@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      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?

      • mark@infosec.pub
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        8 months ago

        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

  • astrsk@kbin.social
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    8 months ago

    Jetbrains Rider is fantastic and .net 6+ is native to Linux now. You can even get by with VSCode (I prefer VSCodium) with their improved C# tools.

    Depending on what you do, there’s also cross platform UI libraries like Avalonia-UI that can fully replace WPF.

  • MattMckenzy@lemmy.ml
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    8 months ago

    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!

      • MattMckenzy@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        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.

  • marlowe221@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

    I write C# for a living and I’m the same - Windows at work, Linux at home.

    I use VSCode on both OSes. On Linux, I only use VSCode for C# and I have the MS-free version for any other languages I want to use.

    I also use VSCode 95% on my work laptop which is a Windows machine. The extension Ms are really good and the dotnet CLI is pretty robust. There are also extensions that can help you deploy stuff to Azure too.

  • Wojwo@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    8 months ago

    Another Rider user. I write mainly backed code, and integrations etc. Work is Rider and Datagrip on windows. Home is Debian KDE with Rider and Datagrip. I love it. If only I can convince my it group to allow Debian on my work computer.

  • atzanteol@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    8 months ago

    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.

    • stereopixels@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      8 months ago

      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.

      • Skyhighatrist@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        8 months ago

        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.