title: Troubleshooting "program does not contain a static 'Main' method" when it clearly does...?
body: <p>My MS Visual C# program was compiling and running just fine.
  I close MS Visual C# to go off and do other things in life.</p>
  
  <p>I reopen it and (before doing anything else) go to "Publish" my program and get the following error message:</p>
  
  <blockquote>
    <p>Program C:\myprogram.exe does not contain a static 'Main' method suitable for an entry point</p>
  </blockquote>
  
  <p>Huh?  Yes it does... and it was all working 15 min earlier.  Sure, I can believe that I accidentally hit something or done something before I closed it up... but what?  How do I troubleshoot this?  </p>
  
  <p>My Program.cs file looks like this:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Windows.Forms;
  using System.Threading;
  
  namespace SimpleAIMLEditor
  {
      static class Program
      {
          [STAThread]
          static void Main()
          {
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
  
              Application.Run(new mainSAEForm());
          }
      }
  }
  </code></pre>
  
  <p>...and there are some comments in there.    There are no other errors.</p>
  
  <p>Help?</p>