title: the name Application does not exist in the current context
body: <p>I have an existing winform app which didn't use Program.cs. I wanted to add Program.cs with the usual code</p>
  
  <pre><code>static class Program
  {
      /// &lt;summary&gt;
      /// The main entry point for the application.
      /// &lt;/summary&gt;
      [STAThread]
      static void Main()
      {
          Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          Application.Run(new Form1());
      }
  }
  </code></pre>
  
  <p>but I have the error message</p>
  
  <p>Application doesn't exist in the current context.</p>
  
  <p>How to solve this ?</p>