title: The type or namespace name 'Bussen' could not be found (are you missing a using directive or an assembly reference?)
body: <p>When i try to compile my source code it gived me this error. When i run the program form visual studio it works. I am currently creating a windows form card game for me and my friends. This is my main Program.cs file.</p>
  
  <h2>Error:</h2>
  
  <blockquote>
    <p>Program.cs(16,33): error CS0246: The type or namespace name 'Bussen'
    could not be found (are you missing a using directive or an assembly
    reference?)</p>
  </blockquote>
  
  <h2>Code:</h2>
  
  <pre><code>using System;
  using System.Windows.Forms;
  using bussen;
  
  namespace bussen
  {
      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 Bussen());
          }
      }
  }
  </code></pre>
  
  <p>The other file is called forms1.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.IO;
  using System.Windows.Forms;
  using bussen;
  
  
  namespace bussen
  {
      public partial class Bussen : Form
      {
  
          public List&lt;string&gt; allCards = new List&lt;string&gt; { };
          public List&lt;string&gt; CardsColour = new List&lt;string&gt; { };
  
          public Bussen()
          {
  
              FormBorderStyle = FormBorderStyle.None;
              WindowState = FormWindowState.Maximized;
              InitializeComponent();
  
              LoadCards();
          }
  
          private void SelectCard(object sender, EventArgs e)
          {
              Random rnd = new Random();
              int RandomNumber = rnd.Next(0, allCards.Count);
              try
              {
                  if (CardsColour.IndexOf(allCards[RandomNumber]) &lt; 26)
                  {
                      (sender as Button).ForeColor = System.Drawing.Color.Black;
                  }
                  else
                  {
                      (sender as Button).ForeColor = System.Drawing.Color.Red;
                  }
                  (sender as Button).Text = allCards[RandomNumber];
                  allCards.Remove(allCards[RandomNumber]);
              }
              catch
              {
                  LoadCards();
              }
          }
  
          public void LoadCards()
          {
              StreamReader streamreader = new StreamReader(@"cards.txt");
              string line;
              while ((line = streamreader.ReadLine()) != null)
              {
                  allCards.Add(line);
                  if (CardsColour.Count &lt; 52)
                  {
                      CardsColour.Add(line);
                  }
              }
              streamreader.Close();
          }
  
          private void Restart(object sender, EventArgs e)
          {
              Application.Restart();
          }
      }
  }
  </code></pre>