Writing C# in Debian












3















I want to learn C# on a Debian system.



What do I have to install?



Is there something like an interactive prompt where I can try running snippets of code?



I have to learn C# and I have a dual boot computer, but don't feel like powering off Linux and booting Windows just for learning C#.










share|improve this question




















  • 1





    Hey, why all the negative votes? Is that because it's a question about a MS technology?

    – Pierre B
    Nov 26 '17 at 18:45






  • 2





    I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

    – Michael Homer
    Nov 26 '17 at 18:46
















3















I want to learn C# on a Debian system.



What do I have to install?



Is there something like an interactive prompt where I can try running snippets of code?



I have to learn C# and I have a dual boot computer, but don't feel like powering off Linux and booting Windows just for learning C#.










share|improve this question




















  • 1





    Hey, why all the negative votes? Is that because it's a question about a MS technology?

    – Pierre B
    Nov 26 '17 at 18:45






  • 2





    I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

    – Michael Homer
    Nov 26 '17 at 18:46














3












3








3


1






I want to learn C# on a Debian system.



What do I have to install?



Is there something like an interactive prompt where I can try running snippets of code?



I have to learn C# and I have a dual boot computer, but don't feel like powering off Linux and booting Windows just for learning C#.










share|improve this question
















I want to learn C# on a Debian system.



What do I have to install?



Is there something like an interactive prompt where I can try running snippets of code?



I have to learn C# and I have a dual boot computer, but don't feel like powering off Linux and booting Windows just for learning C#.







debian software-installation programming c#






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 5 '18 at 16:44









Kusalananda

132k17252414




132k17252414










asked Nov 26 '17 at 18:23









Pierre BPierre B

6402924




6402924








  • 1





    Hey, why all the negative votes? Is that because it's a question about a MS technology?

    – Pierre B
    Nov 26 '17 at 18:45






  • 2





    I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

    – Michael Homer
    Nov 26 '17 at 18:46














  • 1





    Hey, why all the negative votes? Is that because it's a question about a MS technology?

    – Pierre B
    Nov 26 '17 at 18:45






  • 2





    I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

    – Michael Homer
    Nov 26 '17 at 18:46








1




1





Hey, why all the negative votes? Is that because it's a question about a MS technology?

– Pierre B
Nov 26 '17 at 18:45





Hey, why all the negative votes? Is that because it's a question about a MS technology?

– Pierre B
Nov 26 '17 at 18:45




2




2





I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

– Michael Homer
Nov 26 '17 at 18:46





I have edited it not to look like a request for learning materials (which is what it's getting close votes for).

– Michael Homer
Nov 26 '17 at 18:46










2 Answers
2






active

oldest

votes


















10















What do I have to install?




apt install mono-mcs


and optionally



apt install monodevelop


if you want something more like an IDE.



mcs is the compiler. You can run the compiled program with mono prog.exe (or as ./prog.exe with binfmt_misc support enabled, which I believe Debian will do by default).




Is there something like a prompt where I can try running snippets of code?




apt install mono-csharp-shell


and then



$ csharp
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> Console.WriteLine("Hello world!")
Hello world!
csharp>





share|improve this answer































    0














    To complement the previous answer, there's also the .NET Core SDK, which is has a faster and cleaner implementation of the .NET framework(albeit it's somewhat imcomplete, being a Core CLR. Still really reliable, though). If you don't need C# for WinForms, UWP and WPF development, I really recommend checking it out. By now, most libraries should be supporting .NET Core. Download link: https://dotnet.microsoft.com/download



    As for the IDE, there's VS Code, which is the one I'm currently using, and JetBrains Rider. MonoDevelop does have an addon for NET Core support, but I heard it's lacking features(especially on the debug department).






    share|improve this answer








    New contributor




    FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407142%2fwriting-c-in-debian%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      10















      What do I have to install?




      apt install mono-mcs


      and optionally



      apt install monodevelop


      if you want something more like an IDE.



      mcs is the compiler. You can run the compiled program with mono prog.exe (or as ./prog.exe with binfmt_misc support enabled, which I believe Debian will do by default).




      Is there something like a prompt where I can try running snippets of code?




      apt install mono-csharp-shell


      and then



      $ csharp
      Mono C# Shell, type "help;" for help

      Enter statements below.
      csharp> Console.WriteLine("Hello world!")
      Hello world!
      csharp>





      share|improve this answer




























        10















        What do I have to install?




        apt install mono-mcs


        and optionally



        apt install monodevelop


        if you want something more like an IDE.



        mcs is the compiler. You can run the compiled program with mono prog.exe (or as ./prog.exe with binfmt_misc support enabled, which I believe Debian will do by default).




        Is there something like a prompt where I can try running snippets of code?




        apt install mono-csharp-shell


        and then



        $ csharp
        Mono C# Shell, type "help;" for help

        Enter statements below.
        csharp> Console.WriteLine("Hello world!")
        Hello world!
        csharp>





        share|improve this answer


























          10












          10








          10








          What do I have to install?




          apt install mono-mcs


          and optionally



          apt install monodevelop


          if you want something more like an IDE.



          mcs is the compiler. You can run the compiled program with mono prog.exe (or as ./prog.exe with binfmt_misc support enabled, which I believe Debian will do by default).




          Is there something like a prompt where I can try running snippets of code?




          apt install mono-csharp-shell


          and then



          $ csharp
          Mono C# Shell, type "help;" for help

          Enter statements below.
          csharp> Console.WriteLine("Hello world!")
          Hello world!
          csharp>





          share|improve this answer














          What do I have to install?




          apt install mono-mcs


          and optionally



          apt install monodevelop


          if you want something more like an IDE.



          mcs is the compiler. You can run the compiled program with mono prog.exe (or as ./prog.exe with binfmt_misc support enabled, which I believe Debian will do by default).




          Is there something like a prompt where I can try running snippets of code?




          apt install mono-csharp-shell


          and then



          $ csharp
          Mono C# Shell, type "help;" for help

          Enter statements below.
          csharp> Console.WriteLine("Hello world!")
          Hello world!
          csharp>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '17 at 18:42









          Michael HomerMichael Homer

          48.7k8130168




          48.7k8130168

























              0














              To complement the previous answer, there's also the .NET Core SDK, which is has a faster and cleaner implementation of the .NET framework(albeit it's somewhat imcomplete, being a Core CLR. Still really reliable, though). If you don't need C# for WinForms, UWP and WPF development, I really recommend checking it out. By now, most libraries should be supporting .NET Core. Download link: https://dotnet.microsoft.com/download



              As for the IDE, there's VS Code, which is the one I'm currently using, and JetBrains Rider. MonoDevelop does have an addon for NET Core support, but I heard it's lacking features(especially on the debug department).






              share|improve this answer








              New contributor




              FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                To complement the previous answer, there's also the .NET Core SDK, which is has a faster and cleaner implementation of the .NET framework(albeit it's somewhat imcomplete, being a Core CLR. Still really reliable, though). If you don't need C# for WinForms, UWP and WPF development, I really recommend checking it out. By now, most libraries should be supporting .NET Core. Download link: https://dotnet.microsoft.com/download



                As for the IDE, there's VS Code, which is the one I'm currently using, and JetBrains Rider. MonoDevelop does have an addon for NET Core support, but I heard it's lacking features(especially on the debug department).






                share|improve this answer








                New contributor




                FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  To complement the previous answer, there's also the .NET Core SDK, which is has a faster and cleaner implementation of the .NET framework(albeit it's somewhat imcomplete, being a Core CLR. Still really reliable, though). If you don't need C# for WinForms, UWP and WPF development, I really recommend checking it out. By now, most libraries should be supporting .NET Core. Download link: https://dotnet.microsoft.com/download



                  As for the IDE, there's VS Code, which is the one I'm currently using, and JetBrains Rider. MonoDevelop does have an addon for NET Core support, but I heard it's lacking features(especially on the debug department).






                  share|improve this answer








                  New contributor




                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  To complement the previous answer, there's also the .NET Core SDK, which is has a faster and cleaner implementation of the .NET framework(albeit it's somewhat imcomplete, being a Core CLR. Still really reliable, though). If you don't need C# for WinForms, UWP and WPF development, I really recommend checking it out. By now, most libraries should be supporting .NET Core. Download link: https://dotnet.microsoft.com/download



                  As for the IDE, there's VS Code, which is the one I'm currently using, and JetBrains Rider. MonoDevelop does have an addon for NET Core support, but I heard it's lacking features(especially on the debug department).







                  share|improve this answer








                  New contributor




                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 2 hours ago









                  FluffyBucketSnakeFluffyBucketSnake

                  1




                  1




                  New contributor




                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  FluffyBucketSnake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407142%2fwriting-c-in-debian%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      CARDNET

                      Boot-repair Failure: Unable to locate package grub-common:i386

                      Aws NAT - Aws IGW- Aws router