title: 'csc' is not recognized as an internal or external command, operable program or batch file
body: <p>I'm fairly new to C# and I'm trying to use cmd to compile a basic hello world file called <code>test.cs</code>. It contains the following:</p>
  
  <pre><code>// Similar to #include&lt;foo.h&gt; in C++, includes system namespaces in a program
  
      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using System.Threading.Tasks;
  
      // A name space declaration, a class is a group of namespaces
      namespace Program1
      {
          class Hello // my class here, classes can contain multiple functions called methods which define it's behavior
          {
              static void Main(string[] args) // main method, just like in C/C++ it's the starting point for execution cycle
              {
                  Console.WriteLine("Hello World");
                  Console.ReadKey(); // similar to _getch() in C++ waits for user to input something before closing
              }
          }
      }
  
      /*
       * Other notes, .cs is a c# file extension
       * cs files can be built via terminal by using csc foo.cs to generate foo.exe run it with foo
       */
  </code></pre>
  
  <p>When I try to run the line <code>csc test.cs</code> I get the following output:
  <a href="https://i.stack.imgur.com/1aS7R.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1aS7R.png" alt="img of issue"></a></p>