title: wpf The type name 'App' does not exist in the type ... occurs after renaming MainWindow
body: <p>In a simple WPF, I have renamed MainWindow class to MyClass and I got this error in App.g.cs:</p>
  
  <pre><code>    public static void Main() {
          MyClass.App app = new MyClass.App();
          app.InitializeComponent();
          app.Run();
      }
  </code></pre>
  
  <p>How can I fix this can't find anything on the internet ?</p>