I really want to switch to Linux, up to this point there were two things keeping me on Windows, gaming and work.

Gaming nowadays is a lot easier than a couple of years ago thanks to Valve and Proton, so that’s not a problem anymore; with the other one I don’t know if I can make something work enough and that’s why I’m asking here.

I work as a fullstack software developer with windows products I don’t fear for the frontend part because typescript, angular, react, … those I know I can run on linux with no problem on VS Code; for backend thought: dot.net, visual studio, sql server, … I think there is no Visual Studio for Linux and I don’t know if I can run & debug .net 8 applications on a linux machine? I can use docker for things like databases. Does anybody else has a similar scenario and things that had to overcame? Tips, problems that I may not see now before making the switch, and solutions to my current problems are welcome

  • Domi@lemmy.secnd.me
    link
    fedilink
    arrow-up
    6
    ·
    3 months ago

    I’m also a C# dev and I have been using Linux for years now.

    VS Code was pretty much unusable in the beginning when compared to VS. However, nowadays VS Code is very capable at syntax highlighting and debugging.

    There is no support for WPF and Forms applications on Linux, since I mostly write web and console applications I don’t mind running a Windows VM for those few exceptions. There is also no support for Maui applications but as things are going right now it seems to not be going anywhere anyway.

    Since we mostly deploy to Linux servers nowadays anyway it has actually made my job easier since I can run Docker without having to fiddle with it every day like I had to on Windows.

  • Panda@lemmy.today
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    I use Jetbrains Rider on Linux which runs just fine. It takes some setting up to install .NET but it didn’t take me too long. Except for pre-release versions, that might take more trial and error.

    Overall I’m pretty satisfied with the switch to Linux and I haven’t had any major issues. Not with video games, either. Protondb.com is a good website to see what games do and don’t work on Linux and you may need to add launch options to get specific games to work or switch to a specific version of Proton.

    It’s up to you to decide if it’s worth it for you or not. You could try a dual boot setup first.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    Instead of trying to run heavy and complex apps on an OS that were never designed for, use Windows for work, and then use gaming and your personal life on Linux. Another thing you can do is switch the kind of programming you do, so it’s more linux-related, so overtime, you can only have Linux machines. But for the time being, if you’re doing windows programming, use a windows machine for work.

  • setVeryLoud(true);@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago

    You can try JetBrains Rider for .NET, but it’s only natural that you won’t be able to write Windows applications outside of Windows.

    I’m personally impartial to JetBrains for my IDEs on Linux, they work really well and are well supported.

  • teawrecks@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 months ago

    Even if you can run your .net code on linux, it’s better for you to run on the actual platform you’ll be deploying to. You could dual boot just for work (that’s what I do) or try running in a VM, but I assume your work is hard enough without generating new friction.

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    I never thought I’d say this but… in your case, for work at least I would actually stick to Windows! It looks like most of your tools are from Microsoft and that the environment they will normally run on is Windows. It seems most pragmatic to stay there.

    For gaming though (as I’ve argue few times and can be seen from my history), Proton works well, even for AAA games, unsupported (officially) games and VR. ProtonDB helps you to quickly assess if that’s the case for your specific games.

    Anyway, what I would suggest though is step back, i.e WHY do you want to step away from Windows. If it’s technical then “just” dual boot and properly separating fun from work might be sufficient. If it’s more moral and ethical, then earning money from tools that are NOT from Microsoft to gradually decouple, remove the dependency on it, seems like the “right” thing to do.

  • breadsmasher@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 months ago

    .NET is now fully cross platform. you can absolutely run and debug applications on linux as you would in windows.

    However Visual Studio IDE is windows only (theres a mac version but isn’t the same).

    You can use vscode + .net development pack.

    Personally I use Jetbrains rider (for home and work)

    SQL Server has a linux version I believe, but its been years since Ive done an install (for development I run sql server in a container)

    • Rogue@feddit.uk
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 months ago

      This is Visual Studio Code which is a very different app to Visual Studio

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    For the work part in particular, you may find that a virtual machine will get the job done pretty well. With modern CPUs there’s basically no overhead, so it’s often easier to just run the OS you need in a VM.

    You can just run it in the background, run your .NET and SQL server and stuff, possibly VSCode remote into it. PowerShell over SSH. If you need to run a GUI application, you can just RDP into it. FreeRDP has a cool feature where it can RDP a single application so it pops up as any other app on the host. Works great when you just need the database’s GUI or whatever.

    With virtio drivers and everything, it will be essentially as fast as if native. GUI will be slow because of software rendering, but the point is to use it as a server and only use the GUI as necessary, and for server stuff RDP isn’t too bad given it’s basically localhost network.

    There’s also the fun but painful world of VFIO and passing through a real GPU into the VM and feeding back the video to the host with Looking Glass. It’s so good you can game on that (anticheat still won’t work though, they don’t like VMs), so if RDP bothers you that’s an option. Although in my experience, Visual Studio is just as slow and buggy natively, so I wouldn’t bother and just RDP.

    If you add virtiofs to the mix, in theory you can share the code folder and use VSCode on the host and compile on the guest, or even compile on the host and run on the guest. Or send compile commands to Windows over SSH from VSCode. I have my entire Steam library (and Proton containers) on virtiofs and it works perfectly, so I have to imagine a code project should work nicely as well.

    Virtual machines are an awesome tool. There’s also the benefit of keeping all the work stuff in a big isolated container. If you have multiple projects you can make multiple VMs and not worry about one project needing version X and the other version Y of whatever.

    • JJLinux@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      And this is why I didn’t comment. I knew someone had already suggested the VM way. This is the best way to keep your stuff separate from work related.

      • space_comrade [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        3 months ago

        I don’t like VMs because I need to allocate memory upfront for it, and considering it’s a Windows VM and depending on the dev work you’re doing on it you might need to give it 10Gb+.

        If it’s at all possible for OP I’d recommend getting a separate physical workstation and then just remoting into it with your Linux machine, if you use VSCode the process is pretty much seamless, you use VSCode from your Linux machine normally while all the work is being done on the remote machine.

          • space_comrade [he/him]@hexbear.net
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 months ago

            Not sure what you mean exactly. The Windows workstation machine could be accessed remotely from anywhere. I mean sure you’re gonna have to hook it up to a monitor to set it up but after that you shouldn’t have to access it directly, at least not often.

  • flashgnash@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I am a dotnet dev using Linux as my primary OS. Dotnet core fully works on Linux now, there’s a native Linux dotnet cli that works almost identically to the windows one

    SQL server I think has been able to run on Linux for a while anyway

    You’ll have to learn to live without full fat visual studio but honestly you’re better without it anyway it just stops you from learning the stuff you really ought to know by doing it all for you

    VSCode is a pretty good replacement and actually nicer to use if you know what you’re doing, neovim if you want to end up spending all your time configuring it (said as a neovim user)

    Gaming is absolutely not an issue unless you play certain competitive games with weird anticheat (valorant for example)

    As others have mentioned, docker and VMs exist if you have a reasonably powerful machine so nothing should be completely inaccessible to you anyway, on the windows machine I have to use at work I ironically do most of my dotnet dev on a Linux VM anyway