title: Combining two WinForms projects
body: <p>I have to projects in my solution: <code>StoreHelper</code> and <code>DefaultsSwitcher</code>. Both of them have to create a Windows Executable (their output is application). </p>
  
  <p>Now we are located in <code>StoreHelper</code>. This is my code:</p>
  
  <p>At the top of the file:</p>
  
  <pre><code>using DefaultsSwitcher;
  </code></pre>
  
  <p>And in the file:</p>
  
  <pre><code>private void defaultsSwitcherToolStripMenuItem_Click( object sender, EventArgs e ) {
      var defaultsSwitcher = new DefaultsSwitcher.dialog();
      defaultsSwitcher.ShowDialog();
  }
  </code></pre>
  
  <p>The code editor does not show any error by underlining, but when I try to build, the compiler say the following error:</p>
  
  <pre><code>Error   1   The type or namespace name 'dialog' does not exist in the namespace 'DefaultsSwitcher' (are you missing an assembly reference?) E:\Apps\StoreHelper\StoreHelper\mainWindow.cs   84  25  StoreHelper
  </code></pre>
  
  <p>Which is the problem? P.S. I want these two projects to pe <code>.exe</code> files after building.</p>
  
  <p>The code in  DefaultsSwitcher:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.IO;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using StoreHelperLib.Options;
  
  namespace DefaultsSwitcher {
      public class dialog : Form {
          public dialog() {
              var options = new iniHelper();
              if (!File.Exists( "settings.ini" )) {
                  StreamWriter settings = new StreamWriter( "settings.ini" );
                  settings.Close();
              }
  
              options.Load( "settings.ini" );
              options.AddSection( "Application" );
              options.SetKeyValue( "Application", "firstRun", "true" );
              options.SetKeyValue( "Application", "startGuide", "false" );
  
              options.Save( "settings.ini" );
              InitializeComponent();
          }
      }
  }
  </code></pre>