title: Setting URI to root directory in application for image source
body: <p>How do you set the URI for an image source to the root directory (i.e. same folder as your exe) in a WPF application?</p>
  
  <pre><code>var myImage = new Image();
  myImage.Source = new BitmapImage(new Uri("pack://application:,,,/AssemblyName;component/speedline.png", UriKind.Absolute));
  </code></pre>
  
  <p>I've tried the above and keep getting the following error message: </p>
  
  <p><em>An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll.
  Additional information: Could not load file or assembly 'AssemblyName, Culture=neutral' or one of its dependencies. The system cannot find the file specified.</em></p>
  
  <p>I am obviously doing something very wrong, but can guarantee that the png file can be found at <code>C:\Users\Admin\Documents\Visual Studio 2013\Projects\Speedy\Speedy\bin\Debug</code>, in the same folder as my exe file, but how do I reference it?</p>