title: WPF - can't get resource file
body: <p>I have file animaha135.gif in /Images folder, set "Build Action" as "Embedded Resource" or "Resources", I want to get this image to bitmap:</p>
  
  <pre><code>            var image = new BitmapImage();
              image.BeginInit();
              image.UriSource = new Uri("pack://application:,,,/Images/animaha135.gif");
              image.EndInit();
  </code></pre>
  
  <p>but it does not work:</p>
  
  <blockquote>
    <p>Cannot locate resource 'images/animaha135.gif'.</p>
  </blockquote>
  
  <p>what I do incorrectly?</p>
  
  <hr>
  
  <p>solved this problem. Name of assembly was another than name of project. I set the same and my first code works</p>