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
    31
    ·
    11 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
      ·
      11 months ago

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

          • mark@infosec.pub
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            All linux! I think debian, though they have alpine images too.

            I wouldnt wish windows containers on my worst enemy haha.

            • beeng@discuss.tchncs.de
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              11 months ago

              Oh I didn’t think mcr.microsoft provided Linux base, ok good to know.

              I’ve reviewed a few PRs with that in the dockerfile and thought it was always windows based, good to know!

              • mark@infosec.pub
                link
                fedilink
                arrow-up
                3
                ·
                11 months ago

                I think there are windows containers available, but even M$ has given up pushing windows server for cloud native stuff. All their tutorial docs for containers use linux haha

    • rfvizarra@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      11 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
        11 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