title: Error Attempting to Call a WPF Form From Console App
body: <p>I have a console Application and I need to occasionally launch a WPF form depending on the parameters. I and trying the following:</p>
  
  <pre><code>if (arg == "/C")
  {
      System.Windows.Application application = new System.Windows.Application();
      application.Run(new EJConfig.MainWindow());
  }
  </code></pre>
  
  <p>The problem is that when I go to add a reference to System.Windows, it doesn't show up in the list of .NET components, and without it I get the following error:</p>
  
  <pre><code>The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
  </code></pre>