title: "using System.Windows.Media" not recognized even though PresentationCore.dll is Referenced
body: <p>I running Windows XP Service Pack 3. Visual Studio 2010. C# project. </p>
  
  <p>I included a "Using System.Windows.Media" and "Using System.Windows.Media.Imaging" in a Class Project. I also Added the PresentationCore.dll Reference. This was done at the Solution Window. </p>
  
  <p>The so-called "Intellisense" is red-lining all of the functions that come from those namespaces. Nothing I do fixes it. Why doesn't the compiler recognize the PresentationCore reference?????</p>
  
  <p>I need a solution to this problem FAST.</p>
  
  <p>Thank you to anyone who is kind enough to help me.</p>
  
  <pre><code>using System.Windows
  using System.IO;
  using System.Windows;
  using System.Windows.Media;
  using System.Windows.Media.Imaging;
  
  namespace TextEditor
  {
      public partial class App : Application
      {
          AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionOccurred;
      }
  
      private static void UnhandledExceptionOccurred(object sender, UnhandledExceptionEventArgs e)
      {
          Window win = Current.MainWindow;
  
          RenderTargetBitmap bmp = new RenderTargetBitmap((int) win.Width, (int) win.Height, 96, 96, PixelFormats.Pbgra32);
  
          bmp.Render(win);
  
          string errorPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ErrorReports");
  
          if(!Directory.Exists(errorPath))
              Directory.CreateDirectory(errorPath);
  
          BitmapEncoder encoder = new PngBitmapEncoder();
          encoder.Frames.Add(BitmapFrame.Create(bmp));
  
          string filePath = Path.Combine(errorPath, string.Format("{0:MMddyyyyhhmmss}.png", DateTime.Now));
  
          using(Stream stream = File.Create(filePath))
          {
               encoder.Save(stream);
          }
  
      }
  }
  </code></pre>