Mono appears to be dead. I enjoy making life hard so I dont use windows. I am trying to learn very simple c# but am having trouble gettung visual studio to run anything on linux (debian/mint). It wont even run with dotnet in the terminal either. I dont really like all the features in vs either, i just want simple.

For reference im learning with the yellow book by rob miles. I want to learn the old way, not using a bunch of shiny helping tools (i never feel i really learn with those and it stunts my growth).

  • Freigeist@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 年前

    .NET/C# is fully platform agnostic and Linux is a great host system for development in C#. In fact a lot of software developed in C# (basically all of the cloud software) is hosted on Linux systems. As others pointed out Rider and VS Code are a very good choice on Linux.

  • Jestzer@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 年前

    If you want simple: Visual Studio Code. If you want fancy: Rider. That being said, Rider, I find, tends to work better out of the box.

  • jcarr@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 年前

    Depending on your distro, you may have the .NET SDK in your packages already. Debian doesn’t have it. I’m not sure about Mint. I use Ubuntu MATE and .NET 8 is available. Check with this:

    apt search dotnet-sdk

    If you see something like dotnet-sdk-8.0 in the list, this will install everything you need:

    sudo apt install dotnet-sdk-8.0

    If it’s not available in the package repo, it’s not difficult to install manually. Follow the instructions here: https://learn.microsoft.com/en-us/dotnet/core/install/linux?WT.mc_id=dotnet-35129-website#manual-installation

    For my development environment, I use VS Code with the following extensions:

    • C# Dev Kit (Microsoft) – This provides the full development experience: intellisense, debugger, project management, etc.
    • C# Extensions (JosKreativ) – This provides handy helpers for scaffolding classes and other module types.
    • Todo Tree (Gruntfuggly) – Locates TODO comments in your code and displays them in a dedicated tree view.

    Once you’ve installed the SDK along with VS Code and the associated extensions, getting started is as easy as:

    dotnet new console -o HelloWorld
    cd HelloWorld
    code .
    
  • PhilipTheBucket@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 年前

    I really would not recommend specializing in C# at this point in computing history. You can do what you want obviously, but Python is much more likely to be what you want. C++ or Java might be okay if you want a job and are okay with a little bit dated / not ideal languages, or you could learn one of the proliferation of niche backend Linuxy languages, but C# has most of the drawbacks of C++ and Java without having even their relative level of popularity.

    IDK what issue you’re having with VSCode, but I think installing the .NET SDK and then using dotnet by hand from the command line, to test the install, might be a good precursor to getting it working in VSCode. But IDK why you would endeavor to do this in the first place.

    • darkmarx@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 年前

      What are you talking about? C# is massively popular, especially with corporations and government. If someone wants to get a job writing software, they won’t go wrong learning C#.

      Python is great for data evaluations and scripting. There’s nothing wrong with learning it, or any other language for that matter… including Java, C, or C++

      • PhilipTheBucket@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 年前

        C# represents about 12% of the jobs out there.

        https://www.devjobsscanner.com/blog/top-8-most-demanded-programming-languages/

        It’s not unpopular, but it’s definitely not “massively” popular anymore. Different languages have different strengths and weaknesses, but C# has a few more weaknesses than most. In my opinion. Yes, there’s nothing wrong with learning any particular language you want to learn (and I’m a little surprised to see C++ has fallen significantly lower than C#, sure, fair enough). I’m just struggling to see an upside for learning it in the modern day (and now knowing more about what this person’s goal is I feel even more strongly that C# is the wrong answer for them. In my opinion.)