title: Visual Studio Code run individual .cs files
body: <p>Is there a way we can run individual <em>.cs</em> files in Visual Studio Code. </p>
  
  <p>I have followed this link and runs fine but then I added <em>Program2.cs</em> and try to run using "dotnet run Program2.cs" but it failed for obvious reasons saying </p>
  
  <p><a href="https://code.visualstudio.com/docs/other/dotnet" rel="noreferrer">link</a></p>
  
  <blockquote>
    <p>Program2.cs(7,21): error CS0111: Type 'Program' already defines a member called 'Main' with the same parameter types [csharp.csproj]"</p>
  </blockquote>
  
  <p>Is there a way to run individual <em>.cs</em> files. Or any way I can run individual <em>.cs</em> files that outputs to terminal/command prompt or console.</p>